Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I check if a temp table exists?
Message
From
31/10/2002 20:10:52
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00717635
Message ID:
00717651
Views:
18
Hi Sergey,

Thanks. I checked out the thread. I'll try Mike's suggestions.

>See Re: Sp_tables skips # tables Thread #704369 Message #704624.
>
>>I am creating some #temp temp tables conditionally. I am doing a insert into #mytemptable, which creates the table. How can I check if the table exists. With a regular table I can do the statement:
>> if exists (select from dbo.sysobjects...)
>>
>>but this doesn't seem to work for a #temp table. HOw can I find out if a given temp table already exists?
>>
>>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform