Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Alter Table Auto increment

Author  Topic 

leeperman
Starting Member

2 Posts

Posted - 2010-11-16 : 09:48:27
Hi,

I am new to SQL and SQL management Studio

I write the following code in the SQL query pane

ALTER TABLE TransAct
{
ALTER COLUMN OrderNo AUTO_INCREMENT
};


I get an incorrect syntax error - what is wrong with the statement?

Each record now updated in the table will have no OrderNo data imported to it - now instread i want it to increment itself on each row being added.

How is this done correct?

Any help would be appreciated

Thanks
Ciaran

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-11-16 : 09:54:15
See here:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=65257


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -