Archive for the 'SQL 2005' Category

02
Oct
08

Generate Sequential Number in SQL Server

 

Here is the small example on how to generate sequential number in SQL Server.

DECLARE @cnt INT
SET @cnt=0
WHILE (@CNT<=10)
BEGIN
    PRINT @CNT
    SET @CNT=@CNT+1
END




 

November 2009
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Tags

Category Cloud

Blog Stats

  • 219 hits

Top Posts

  • None