Get value inserted in RowGuid?
INSERT INTO MyTable
DEFAULT VALUES
how to get inserted by server guid ?
Best Regards, IordanAssuming you are on at least SQL Server 2005 use the OUTPUT
clause.
DECLARE @MyTable TABLE
(
id UNIQUEIDENTIFIER DEFAULT NEWID()
)
INSERT INTO @MyTable
OUTPUT inserted.id
DEFAULT VALUES
精彩评论