Microsoft
Software
Hardware
Network
Question : how so I get the uniqueidentifier after insert in SQLEXPRESS?
I need to create a batch number for entering a set of records. I have a batch table that stores the unique batch number and other information about the batch. When the user clicks "New" to create a new batch, I use the Insert command to add the record. But then I need the uniqueidentifier that was created for the batch number. What is the SQL syntax for this?
Thanks in advance!
Answer : how so I get the uniqueidentifier after insert in SQLEXPRESS?
DECLARE @GUID uniqueidentifier
SET @GUID = NEWID()
INSERT Item VALUES (@GUID,'Yak Hoof')
and return the value of @GUID as output parameter
Random Solutions
where parameters aspx .net page
Trying to open Outlook 2000 PST in Outlook 2003
How can I check the size of a SharePoint 2007/Wss 3.0 sub site?
Direct Push not receiving unread emails
Broken Reference to the file dao2535.tlb error message on opening Access Data Base created in Access 97
Inserting a record
JQuery is disabled by partial postbacks
Adobe Flash Player 10 does not work in I.E. 7.0 or 8.0
Excel - Copy all Tab data to one master tab automatically
How to hide caret in textbox