I'm trying to utilise the sp_helpuser sp. I want to nest it within my own sp and retrieve a specific field.
ie. if this was a table i would
DECLARE @MyParam
Select @MyParam = sp_helpuser.Groupname
I could then go on to use the parameter @MyParam to retieve data from my own data.
ie.
SELECT groupID
FROM tblMySecurity
WHERE groupname = @myParam
Get the idea? Got an answer? let me know
Cheers
ie. if this was a table i would
DECLARE @MyParam
Select @MyParam = sp_helpuser.Groupname
I could then go on to use the parameter @MyParam to retieve data from my own data.
ie.
SELECT groupID
FROM tblMySecurity
WHERE groupname = @myParam
Get the idea? Got an answer? let me know
Cheers