UFN_GETNEWID

Return

Return Type
uniqueidentifier

Definition

Copy


create function dbo.UFN_GETNEWID()
returns uniqueidentifier
with execute as caller
as begin
    -- do work here and return a value

    return (select ID from V_NEWID)
end