Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call a stored procedure within a select
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00984413
Message ID:
00984627
Vues:
20
>what would be the correct syntax for calling a stored procedure within a select statement
>example:
>
>select set @ctr = @ctr + 1,
>(exec dbo.mySP1 @ctr, empfl.empid)
>from empfl
>
>
Sergey's right (as usual). If the function is within the same database then
@ctr = dbo.MyFunction()
Otherwise, use
mydatabase.dbo.MyFunction()
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform