Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using result set
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00644014
Message ID:
00644072
Vues:
27
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform