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
How to convert this VB.NET code to VC# code?
Messenger connection error 80072f0d
.NET image resizing script for blog
Question about Win7 x64 and 32-bit programs.
Filter one combo box based on value of another, filtered list blank issue
Trimming
GPO Server 2003 XP Pro Clients Wallpaper
Save Record Only On Save
How can I log on locally to a perimeter domain machine with a user from an internal domain account?
time as number?