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

Copy/Paste uniqueidentifier?

Status
Not open for further replies.

MeMark

Programmer
May 8, 2006
2
SI
How can I "copy" the uniqueidentifier value of a row in one table and "paste" it into another using SQL Server 2000?
Thanks!
 
Could you do a
Code:
UPDATE dest_table
   SET dest_UIDfield = (SELECT source_UIDfield
                        FROM source_table
                        WHERE condition_uniquely_finds_source)
WHERE condition_uniquely_finds_dest

or is there more than one you need to get?
 
Sorry I didn't clarify...it should be an INSERT to a table. I THINK I figured it out using cursor/fetch statements.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top