Set IDENTITY on the field.
Arne
PS: This is a C# forum.
> I'm trying to get into database programming. Cannot figure out how to
> do an auto int for my key value in SQL Server Express.
As Arne says, you set the IDENTITY flag on a numerical field.
As Arne also correctly implies, you will generally get a much better (and
quicker) response if you post in the correct newsgroup...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net