Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Security - sp_helpuser

Status
Not open for further replies.

RobS23

Programmer
Jun 4, 2001
161
GB
I need to use the sp_helpuser system sp to retrieve group\role info: How do I go about creating a table from the results of the sp without editing the sp itself - ie. Embed it within another sp?
 
Hi,

You can use the SPs for datasource directly.
I think you can use following statements in your sp.
----------
create table myTempTable
(username char(10) null, groupname char(10) null,
loginname char(10) null , defdbname char(10) null,
userid char(10) null, suserid char(10) null)

insert myTempTable
execute sp_helpuser

----------

This will help you in the right direction.



 
Thanks!

Me being too busy and a bit daft I'm afraid!

I just forgot the exec command!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top