これが賢い解決策です:
create view getNewID as select newid() as new_id
create function myfunction ()
returns uniqueidentifier
as begin
return (select new_id from getNewID)
end
私は信用できないこと。ここで見つけました:http://omnibuzz-sql.blogspot.com/2006/07/accessing-non-deterministic-functions.html
-ドン