Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call a stored procedure within a select
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00984413
Message ID:
00984415
Views:
31
A stored procedure cannot be called from a query but UDF can.

>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
>
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform