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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

uniqueidentifiers 1

Status
Not open for further replies.

transparent

Programmer
Sep 15, 2001
333
GB
I have just imported some data from an excel document into a sql database.

Currently there is no primary key column, so I have added a new column of type uniqueidentifier.

I have 3000 rows. How can I generate the guid values for this column?
 
use newid()

“I sense many useless updates in you... Useless updates lead to defragmentation... Defragmentation leads to downtime...Downtime leads to suffering..Defragmentation is the path to the darkside.. DBCC INDEXDEFRAG and DBCC DBREINDEX are the force...May the force be with you" --
 
Aye - just found that myself!!!

Thanks for your time though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top