Is it possible to do something similar in sql server 2005?
WITH tmpTable AS (EXEC spWhatever)
Or in any other way I can request data returned from sp? Thank!!!
Temp table:
CREATE TABLE #foo (col1 int, col2 char(10), ...) INSERT #foo EXEC myproc
Or loopback (not sure if this still works). Edit: may be OPENROWSET according to SQLMenace answer
SELECT * FROM OPENQUERY (MyServername, 'USE MyDB EXEC myproc')
only with a loopback request, if you do not want to create a table first, see here: Save the output of a stored procedure to a table without creating a table
Example
SELECT * INTO #TempSpWho FROM OPENROWSET ('SQLOLEDB','Server=(local);TRUSTED_CONNECTION=YES;', 'set fmtonly off exec master.dbo.sp_who') SELECT * FROM #TempSpWho
, . (UDF) SP, , .
Source: https://habr.com/ru/post/1784178/More articles:.net MVC 3 Request Event - .netWCF - Dynamically invoke multiple web service endpoints that implement the same interface - wcftkdiff how to ignore line endings - tkHow to get table row height in Word - vbaTesting / improving the performance of a multithreaded program - performanceCheckout from .macs script - emacsGet_tags () function not sorting correctly - phpWPF C # Hide Controls on Application Launch - c #Clang static analyzer on iPhone application shows errors with the latest version - objective-cDistributing a panel containing a background application in the Mac App Store - objective-cAll Articles