Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: sp and conditional temp table
Message
From
23/05/2005 12:57:34
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01016662
Message ID:
01016818
Views:
9
>Fabio,
>
>>... it Will have to exist ????
>
>Yes, why on earth would you want to insert into something that doesn't exist? Since you didn't do a create table command inside the SP I was assuming it had been created by the caller and will be populated by the called SP.

But this is not possible with a #temptable.

>
>Are you intending to create the #temptable inside the test1 SP? If so it'll go out of scope and disappear once the execution of test1 finishes so there's no point to your code as posted. If you issue a create table #temptable inside the SP and insert into it like my code does it'll work fine.
>

This is not the problem.

I want write two or more mutal exclusive select ... into #temptable.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform