Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to drop autonumber 1

Status
Not open for further replies.

jmodo

Programmer
Aug 2, 2006
43
US
I need to drop the autonumber on one of my fields via code.

Thanks
-J
 
You want to get rid of the whole column or just change it's type?

Drop the Column
Code:
ALTER TABLE myTable DROP COLUMN AutoNumCol

Change the Type
Code:
ALTER TABLE myTable ALTER COLUMN AutoNumCol Long
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top