I have this function :
CREATE FUNCTION [DBO].[f1]
( )
RETURNS BIT AS
BEGIN
SELECT c1 FROM #xTemp
END
#xTemp has creeted before execute this function f1 and I cannot creat it within the function
i think if you use them in the same transaction.you have no problem.of course if you must use two transaction then set the 'transaction isolation level' to ''dirtyread".
Comment