-3

Possible Duplicate:
Auto-increment primary key in SQL tables

i have a question about how i can get auto increase and enter the ID in my MS SQL Database, when i'm inserting data via textbox's on my ASP.NET Website, i will try this guide..

http://mrbool.com/inserting-data-into-sql-server-database-using-csharp-and-asp-net/25091

But as you can see it, the user needs to write an ID, but that's not what i wanted.. Can you help me ? :)

Community
  • 1
  • 1

1 Answers1

1

You need to make the id column type int and set auto increment property of this field. This is a similar post.

Community
  • 1
  • 1
Adil
  • 146,340
  • 25
  • 209
  • 204