Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 SCOPE question

Author  Topic 

Da_Retina
Posting Yak Master

109 Posts

Posted - 2001-09-19 : 03:01:15
Hi..
Thanks in Advance ofcourse.
My Question is : does a stored procedure live in the SAME scope as a trigger WHO called that stored procedure?. Wouldnt the sp be a separate batch than a trigger who called him/her(lol)?
Why is a Dynamic SQL batch a separate scope?...an example of my case is that I am creating a TEMP table in a trigger then call an SP to deal with it everything goes fine..but when I try to reference or create a TEMP in a dynamic SQL batch it is out of scope..anyone would elaborate on scope issue?
Thanks Again
------------

   

- Advertisement -