I have written a program to insert the values into datbase and a field named SNO which should be auto incremented whenever an insert happens. I have aready created a table but did not set SNO as increment!!
Kindly help to set this constraint in SQL !!
Query:
Alter table dbo.master alter column SNO int NOT NULL AUTO_INCREMENT;
Error : Incorrect syntax near 'AUTO_INCREMENT'.