Christopher Green

Now with more Vitamin C!
posts - 41, comments - 30, trackbacks - 1

Add ID column to existing SQL table

This is just a handy SQL tip I putting here more for myself than anything.  Say you have a table of data but want to add a ID column for a variety of uses.  Just open up a query window and run the following:

use database

alter table dbo.Table add ID int identity

Print | posted on Wednesday, May 03, 2006 12:28 PM |

Feedback

Gravatar

# re: Add ID column to existing SQL table

Great sql tip
11/5/2006 10:27 AM | מס הכנסה
Comments have been closed on this topic.

Powered by: