Hi,
use this to generate auto numbers in SQL.first of all these auto-generated numbers mostly applies to Primary keys or columns with unique identifier.
Create table Test
( TestID int unique identity (0001, 1)
)
here i have created a table called Test, with a column testid -- int as the data type, identity to auto generate the id with a seed of 0001 and an increment of 1.
hope that help,i have not tried in my query window but i hope it works for you otherwise let me know and i modify if there is any mistake.
let me know