Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sp_tables skips # tables
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00704369
Message ID:
00704491
Views:
19
it works for me on SQL Server 2000. I'm getting a list of all the temporary tables.

-Mike

>'sp_tables' used to give us the # tables in the tempdb/user tables area, but not anymore with Sql 2000. The line that worked in Sql 7:
>
>use tempdb;exec sp_tables '#Calc%', @table_type="'TABLE'";use mc_main_exl
>
>This is breaking our cleanup routine so that a second run crashes into the # tables already created. Any ideas? Thanks.
>
>We enabled DataReader in tempdb and now we can all the # tables, even those not from our current connection. Woah. We can't be whacking other folk's temp tables. Help!
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform