Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using SQL passthru to select into #tempdb but no table r
Message
 
 
To
28/10/2008 13:36:45
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01357762
Message ID:
01357763
Views:
17
This message has been marked as the solution to the initial question of the thread.
>I am sending a select statement such as:
>
> Select * into #mytemptbl from mytable where {condition}
>
>but the select has no records matching my condition. But I still need the temp
>table created.
>
>Is there a setting to make the table even if the result set is empty?

There's no setting because table is always created by SELECT INTO regardless how many records are returned.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform