Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SP selecting from a SP
Message
 
 
To
15/08/2011 14:37:52
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01521017
Message ID:
01521020
Views:
55
It's invalid syntax. You have to create a [temp] table with columns that match SP recordset first and then
INSERT INTO <table name> EXEC [mySP] 'para1'
>I have several individual stored procedures that are related. I am looking to select from them all into a single select statement result. The syntax I have noticed all over the web suggests
>
>
>SELECT * FROM EXEC [mySP] 'para1'
>
>
>But, SQL Server tells me that it is a syntax error to use the EXEC in the data source in the above statement. Is there some setting I must configure before this type of syntax is accepted?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform