Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax qustion when creating TEMP table on the fly
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00778391
Message ID:
00778429
Vues:
12
Hi!

I don't understand the second question,

but for the first one I think this could be helpfull:

instead of:

@cSQLCmd = 'SELECT ' + cSQLLine + ' FROM INSERTED'
INSERT INTO #TempTbl EXEC (@cSQLCmd)

you can do this:

@cSQLCmd = 'SELECT ' + cSQLLine + ' INTO ' + @cTempTbl + ' FROM INSERTED'

having in @cTempTbl the name of your temporary table.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform