Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

can i use timestamp in order by to get records which are changed , inserted after old time stamp

$
0
0

Dear all,(sqlserver 2005)

i want to save the largest timestamp in a variable then

i want to get the changed and inserted record from a table

like select * from t where timestamp>@timestamp

is the above is correct ( basically i wanted timestamp to use in my stored proc which can

get me differential from database)

2) i could not under stand , how following is possible.(http://technet.microsoft.com/en-us/library/ms182776%28v=sql.90%29.aspx)

Duplicate timestamp values can be generated by using the SELECT INTO statement in which atimestamp column is in the SELECT list. We do not recommend usingtimestamp in this manner.

yours sincerely



Viewing all articles
Browse latest Browse all 23857

Trending Articles