Richard Mitchell

Software Engineer - Red Gate Software
Engine programmer and factotum.

It's like being stoned to death with marshmallows

Published Thursday, April 12, 2007 9:56 AM

It's amazing what you learn reading MSDN. It has recently been my joy to have to discover everything I've never really wanted to know about the internal system tables of SQL Server 2005. I don't mean those lovely system views that they've created. I mean all the grubby nasty little tables with names like sys.objects$ and sys.syssingleobjrefs. To do this you require a dedicated admin connection (DAC) to the sql server instance that you want to investigate.

Initially I was looking at the tables via the command line sqlcmd -A, this was all good clean fun but not brilliant for having a good look at the data. So I went googling and discovered a neat little trick for getting the DAC open in SQL Manglement Studio. It goes something like this...

Simply prefix the connection of a query window with the string "admin:" - yes as simple as that, so in my case the server I was connecting to was "admin:richard\sql2005". A simple trick but well worth knowing, so now I can go back to looking at all these strange tables Microsoft never intended mere mortals to investigate.

Wish me luck, if I'm not back in 7 days send a search party.

http://msdn2.microsoft.com/en-us/library/ms178068.aspx

Comments

 

RobertChipperfield said:

"Any problem in computer science can be solved by adding another layer of indirection... apart from having too many layers of indirection"
April 12, 2007 5:32 AM
 

Rodney said:

This is good information.  Just as an added note, by default remote administration is not enabled for port 1434. The DAC expects a connection from 127.0.0.1 only. Here is the override to allow remote administration.

sp_configure 'remote admin connections', 1;
GO
RECONFIGURE;
GO

This can also be done with SQL Server 2005 Surface Area COnfiguration (For Features)
April 12, 2007 3:17 PM
 

Rodney said:

This is good information.  Just as an added note, by default remote administration is not enabled for port 1434. The DAC expects a connection from 127.0.0.1 only. Here is the override to allow remote administration.

sp_configure 'remote admin connections', 1;
GO
RECONFIGURE;
GO

This can also be done with SQL Server 2005 Surface Area COnfiguration (For Features)
April 12, 2007 3:17 PM
You need to sign in to comment on this blog

















<April 2007>
SuMoTuWeThFrSa
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345
Virtualizing Exchange: points for discussion
 With the increasing acceptance of the use of Virtualization as a means of providing server... Read more...

Encouraging .NET Reflector Add-ins
 Jason Haley is well-known for the resources he's provided to developers who wish to extend Reflector's... Read more...

Using .NET Reflector Add-ins
 .NET Reflector by itself is great, but it really comes into its own with the help of some add-ins. Here... Read more...

Unique Experiences!
 You'd have thought that a unique constraint was an easy concept - Not a bit of it; it can cause a lot... Read more...

Dynamic Data Templates in ASP.NET 3.5
 Gayani gives an introduction to Dynamic Data Templates in ASP.NET 3.5 and explains how one can save a... Read more...