Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using result set
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00644014
Message ID:
00644072
Views:
25
This message has been marked as the solution to the initial question of the thread.
CREATE TABLE #mytable (
	UserName sysname, 
	GroupName sysname,
	LoginName sysname Null,
	DefDBName sysname Null,
	UserID smallint,
	SID smallint )


INSERT #mytable EXEC sp_helpuser 
SELECT * FROM #mytable
>Hello All.
>I’d like to use the result set returned by one (called) procedure within another (calling) procedure. Something like this:
>
>SELECT * FROM (EXEC(sp_helpuser)) INTO TABLE #MyTable
>
>Thank you.
>Kamil.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform