I am using a visual studio 2010 and Microsoft SQ\'L Server 2005.
I want my text box Equip_No to be an auto number data type.
I already followed these steps>
I don't think you can alter an existing column into identity in Sqlserver-2005.
You can however add a column with identity and after that manipulate the values and change the seed
Adding the autoincremental column
ALTER TABLE yourtable
ADD newid INT identity(1,1)
Making it possible to change your values in your id column however you want
SET IDENTITY_INSERT yourtable ON
Do your manipulating here, example:
UPDATE yourtable SET newid = id
Cleanup
SET IDENTITY_INSERT yourtable OFF
DBCC CHECKIDENT
('YourTable', RESEED, );
Replacing old column
ALTER TABLE yourtable DROP COLUMN id
SP_RENAME 'yourtable.newid', 'id', 'COLUMN'