Click here to monitor SSC

Richard Mitchell

Project Manager - Red Gate Software - http://cloudservices.red-gate.com
Development Factotum at Red Gate Software Ltd. Now working on a hosted system for maintaining cloud applications http://cloudservices.red-gate.com

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
Latest articles
A first look at SQL Server 2012 Availability Group Wait Statistics
 If you are trouble-shooting an AlwaysOn Availability Group topology, a study of the wait statistics... Read more...

SQL Server Prefetch and Query Performance
 Prefetching can make a surprising difference to SQL Server query execution times where there is a high... Read more...

SSIS Basics: Setting Up Your Initial Package
 When working with databases, the use of SQL Server Integration Services (SSIS) is a skill that often... Read more...

Checking Out SQL Backup Pro 7’s New Automatic Backup Verification
 Wouldn't it be great to offload the daily chore of checking the integrity of your production... Read more...

Chuck Lathrope: DBA of the Day
 Chuck Lathrope was a finalist for the Exceptional DBA of the Year award in 2009. We contacted him to... Read more...