I have a table student (id, name). Then I have one textbox, for entering the name, when click on submit button, it inserts the data into the databa
student
id, name
Try the following query,
insert into student(name) values(name)
SQL Server internally auto increments the id column when u insert the data since u said it is auto increment. If it is not working, the u have to check the identity column in the db.