Re: Server roles
- From: plTAKE@xxxxxxxxx (Peter Lindberg)
- Date: Tue, 24 Jun 2008 15:23:04 GMT
I got the info by starting a virtual server with the old mdf and ldf
files.
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?
/Peter
On Mon, 23 Jun 2008 15:26:24 -0700, Erland Sommarskog
<esquel@xxxxxxxxxxxxx> wrotc:
Peter Lindberg (plTAKE@xxxxxxxxx) writes:
Uri, you are probebly right, but I believed it was possible. Damn
dynamic views;-)
Here is what you can do. First log in directly on the server machine.
Then connect to SQL Server with ADMIN:(local). This connects you on
the DAC, Dedicated Admin Connection.
Then do
sp_helptext 'sys.server_principals'
to get the query text for that view and copy it. You will find that
the view refers to the master database. You will also find that it
uses some special functions that will give you errors. Just comment
these.
From the DAC you can query the system tables directly. Note that this issomething you would do only exceptionally, but this is an exceptional
case.
Beware that you should not stay connected the DAC for any longer period,
as the DAC is intended to be a connection where the DBA can log in, when
the server is in a mess, and nothing else works. There is only one
connection possible through the DAC.
.
- Follow-Ups:
- Re: Server roles
- From: Erland Sommarskog
- Re: Server roles
- 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
- Server roles
- Prev by Date: Re: Server roles
- Next by Date: Re: Grant v Deny
- Previous by thread: Re: Server roles
- Next by thread: Re: Server roles
- Index(es):
Relevant Pages
|