Re: Server roles
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Mon, 23 Jun 2008 15:26:24 -0700
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.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: Server roles
- From: Peter Lindberg
- 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
- Server roles
- Prev by Date: Re: Grant v Deny
- Next by Date: Re: Server roles
- Previous by thread: Re: Server roles
- Next by thread: Re: Server roles
- Index(es):
Relevant Pages
|