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
Microsoft SQL Server 2005

Avatar of undefined
Last Comment
curiouswebster
ASKER CERTIFIED SOLUTION
Avatar of Raynard7
Raynard7

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of curiouswebster

ASKER

thanks.

I got :

Command(s) completed successfully.

But I can't find the table.  Any suggestions?
SOLUTION
Avatar of kenhaley
kenhaley

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
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.
Avatar of curiouswebster

ASKER

I ran the first one, but still can not find the table.

How do I find it?
Avatar of curiouswebster

ASKER

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?
Avatar of curiouswebster

ASKER

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?
Microsoft SQL Server 2005
Microsoft SQL Server 2005

Microsoft SQL Server 2005 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. It includes support for managing XML data and allows a database server to be exposed over web services using Tabular Data Stream (TDS) packets encapsulated within SOAP (protocol) requests.

72K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo