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




 

January 2010
M T W T F S S
« Oct    
 123
45678910
11121314151617
18192021222324
25262728293031

Tags

Category Cloud

Blog Stats

  • 220 hits

Top Posts

  • None