Question of the Day Twenty

Let us continue our question of the day series with day twenty.

What is the DAC and how do I use it?

The DAC, or Dedicated Administrator Connection, is essentially a troubleshooting backdoor into a running instance of SQL Server.  The DAC is available through SSMS and the SQLCMD utility.  In SQL Server Management Studio choose New Query on the toolbar (assuming of course that you are not currently connected to any other DACs) as opposed to the Connect button in the Object Explorer, which will not work with DAC.  Once you are prompted for the connection enter ADMIN: in front of the Instance name\Server name (such as ADMIN:instance\server).  Then enter a sysadmin level credential.  If you are using the SQLCMD utility, then the command is sqlcmd -Sadmin:instance\server.



About SQLGator

Microsoft Data Platform MVP, Florida Gator, Star Wars fanatic and is there anything else...oh yeah PS4! I am a geek and SQL Server Business Intelligence Consultant, there are other technologies greater than these? Not so fast my friend! I also love to travel to new and exotic places.

Posted on August 22, 2012, in SQL Schoolhouse and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: