Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eval Function
Message
De
24/12/2003 12:51:38
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00861938
Message ID:
00861967
Vues:
18
><snip>
>>3. cannot return a value directly, it only returns a result set, hence the temp table. also, must use temp table rather than table variable, since you cannot insert into...exec sp.. using a table var.
><snip>
>
>Hi Trey,
>
>Take a look at How to return a value from dynamicaly executed T-SQL code FAQ #8130

This example uses EXEC, which can only be used in a UDF for execution of extended stored procedures.

I need to be able to do it in a function because I need to call the function from a SELECT.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform