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
Loan Calculator
VBA code to loop through two different record sets and output message boxes
Attach Text Box and Combo Box text
Squid on Windows 2003
Missing Comma Error.....?
Custom Built Login Page to replace IIS Basic Authentication Popup
Text Field "Overflow" (Needs to be scrolled) indicator
Access rule ISA 2006
what to key do you press to restore an EMACHINE 3646
I need to capture the output of the datagrid grdAttendees and record each Members Email Address.