Archive for October, 2008

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




 

October 2008
M T W T F S S
« Jul    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Tags

Category Cloud

Blog Stats

  • 220 hits

Top Posts

  • None