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
EXCHANGE 2000 to 2007 Last server removed issue with name resolution
SQL server 7.0 DTS package
C# -- dataGridViewTextBoxColumn -- STRING Value ?
OWA Impersonation Read Email Exchange 2010
Event id:54
how to convert a project into exe file?
WINXP OUTLOOK EXPRESS LOST INBOX
Access 2000: Changing the Pagesize of a Report at runtime
Iterate through Pivot Items from Cube
Data conversion using MS BizTalk 2009