Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored proc sql server
Message
From
12/10/2004 17:00:18
 
 
To
12/10/2004 16:44:54
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00950845
Message ID:
00950854
Views:
14
Randy,

There are a couple of ways to do this, but since you asked about temp tables...

You can create temp tables by doing the following;
SELECT <columns> INTO #TempTableA FROM <files and joins>
SELECT <columns> INTO #TempTableB FROM <files and joins>
SELECT <columns> FROM #TempTableA, #TempTableB <where whatever>
DROP TABLE #TemptableA
DROP TABLE #TempTableB
The #TemptableA will create a temp table that's unique to the connection. And then you drop them at the end.

Hope that helps...
Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform