Set the identity specification on a primary key

Q: I always used databases provided by Microsoft to practice on. Today I tried to create my own and ran into trouble. Problem is that I cannot set the identity specification on a primary key. The column properties show up as no and I cannot change it to yes. I’m using SQL Server Express 2005 on a Vista machine. Any thoughts?

A: . To change column properties, you must modify the table (right click table and select “Modify”). Select and highlight the column you want to change, then expand the “Identity Specification” in the “Column Properties” pane. Change the “Is Identity” property to “Yes”. Please note the change must be made to the “Is Identity” property, not the “Identity Specification”.

Comments

Popular posts from this blog

Working with double quotes (") in VB.Net

Using VB Script to display part of an IP address

Sep '19 Announcements