Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

SQL Express 2005 - need an auto increment ID column

Hi,

I need to create a table which has an auto indexing ID column.  I've done this in Access and hope I can do it in SQL Express as well.

Any suggestions.

thanks,
newbieweb
ASKER CERTIFIED SOLUTION
Avatar of Raynard7
Raynard7

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

thanks.

I got :

Command(s) completed successfully.

But I can't find the table.  Any suggestions?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kenhaley
kenhaley

Oops.. the second insert should read
INSERT myTable(field1) values ('Second Record')
but it doesn't matter--it works either way.
I ran the first one, but still can not find the table.

How do I find it?
With both queries I had success.  But in neither case could I find where the new table was placed.  Any ideas about how to search for it?
Or how about is there a way to provide a namespace to the table name so I can have it created inside a given database?