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

Updating Each Row With Diff. Value

Status
Not open for further replies.

Creeder

Programmer
Jul 5, 2000
110
MY
Hi all,

I have a store procedure which basically returns a unique guid value. Running it using SQL Query,

declare @guid char(20)
EXEC GetNextGUID @guid output
select @guid

@guid will have a unique value.

My question is how can i update EACH row of an ID column in a table with different @guid values return by the stored procedure? Is there such a thing as scanning through
each row and executing a code in SQL?

I am still new to SQL and any help is greatly appreciated.

Thanks in advance.

YJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top