Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stored proc sql server
Message
De
12/10/2004 17:00:18
 
 
À
12/10/2004 16:44:54
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00950845
Message ID:
00950854
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform