Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Temp tables
Message
De
23/01/2004 09:05:22
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Temp tables
Divers
Thread ID:
00869837
Message ID:
00869837
Vues:
42
Hello everyone,
I am trying to create a temp table and then insert some records in there:

DECLARE @StrCreate varChar(500)
SET @StrCreate = 'CREATE TABLE #curReport (ID Int, F1, F2...)' -- String,actually gets build for crosstab report
EXECUTE(@StrCreate)
SELECT * FROM #curReport

It does not see #curReport after EXECUTE.
If there any way around this.
Please help.

Thanks in advance..
XO4Y BCE 3HATb,YMETb,IMETb!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform