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
use the key word "identity" to auto increment the id column
Refer : http://technet.microsoft.com/en-us/library/aa933196(v=sql.80).aspx
create table table_name( id int PRIMARY KEY IDENTITY )
and you no need to mention the "id" in the insert query