With regards to Identity columns in ms sql server 2000, what is the best way to manage the gaps after rows have been deleted?
I read somewhere about using :
DBCC CHECKIDENT (TableName, RESEED,1)
DBCC CHECKIDENT (TableName, RESEED)
But i think it only works if the rows are removed from the...
My apologies. I forgot to mention I am using MS Sql server 2000.
SQL SERVER:-
select top 3 *
from a1
where ss <= '11.08.2002'
This almost works but it returns the first 3 rows in my table instead of the 3 preceding 11.08.2002 ... is there a corresponding BOTTOM function??? i couldn't find...
Thanks for help. But that doesn't seem to do exactly what I wanted. It works in the case of the example because the first 3 rows are the correct ones, however when there are more rows preceding them the wrong ones would be returned
table a1
ss
20.08.2002 10:23:34
18.08.2002 10:23:34...
Hi,
I am having problems making a query that will return the rows for a specified date AND the preceding N number of days (not necessarily just date - N days).
I.e.
table date column consists of:
Date Column
...
Aug 5,2002
Aug 7,2002
Aug 8,2002
Aug 10,2002
Aug 12,2002
...
If i want to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.