Re: Server roles
- From: plTAKE@xxxxxxxxx (Peter Lindberg)
- Date: Wed, 25 Jun 2008 09:36:12 GMT
Ok, I didn't understand that I had to get into another table,
"master.sys.sysmultiobjrefs" and also quaquallify that one to
MYmaster. With that done, joined with "MYmaster.sys.sysxlgns" I got
the info.
Tack för hjälpen!
/Peter
On Tue, 24 Jun 2008 15:31:31 -0700, Erland Sommarskog
<esquel@xxxxxxxxxxxxx> wrotc:
Peter Lindberg (plTAKE@xxxxxxxxx) writes:
But Erland, your thought was clever, pity I couldn't get it to work;-)
I could get data from "MYmaster.sys.sysxlgns". All other "sys.sys*"
gave me the same result if I prefixed it with master or MYmaster.
It's probebly my poor t-sql. Is it possible to create a query that
would actually give the output result as I would get it from
sp_helpsrvrolemember?
Not really sure what you did, but you need to use sp_helptext on the
catalog views, get the view definition directly, then run the command
against the system tables.
.
- References:
- Server roles
- From: Peter Lindberg
- Re: Server roles
- From: Uri Dimant
- Re: Server roles
- From: Peter Lindberg
- Re: Server roles
- From: Uri Dimant
- Re: Server roles
- From: Peter Lindberg
- Re: Server roles
- From: Erland Sommarskog
- Re: Server roles
- From: Peter Lindberg
- Re: Server roles
- From: Erland Sommarskog
- Server roles
- Prev by Date: Re: Help We Got Hacked with a SQL Injector
- Next by Date: Re: Help We Got Hacked with a SQL Injector
- Previous by thread: Re: Server roles
- Next by thread: Re: Help We Got Hacked with a SQL Injector
- Index(es):