Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OK - how do you do this
Message
From
28/12/2000 14:14:10
 
 
To
28/12/2000 10:23:32
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00457333
Message ID:
00457503
Views:
23
Ken,

It is true that any temp. tables created within dynamic sql are scoped to the dynamic sql. BUT, if the temp table exists BEFORE the dynamic sql, it is within scope:

CREATE TABLE #x (c int)

EXECUTE ('insert into c values (1)')

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform