select cast(cast(0 as binary) as uniqueidentifier)
Declare @GuidParam uniqueidentifier
SET @GuidParam ='00000000-0000-0000-0000-000000000000'
IF @GuidParam = CAST(CAST(0 AS BINARY) AS UNIQUEIDENTIFIER)
BEGIN
--Guid is empty
END
Declare @GuidParam uniqueidentifier
SET @GuidParam ='00000000-0000-0000-0000-000000000000'
IF @GuidParam = CAST(CAST(0 AS BINARY) AS UNIQUEIDENTIFIER)
BEGIN
--Guid is empty
END
No comments:
Post a Comment