SQL server, SQLServerPedia Syndication

DAC aka Dedicated Admin Connection.

Dedicated Admin Connection or DAC for short will give you a single superuser connection to the DB. DAC can be used on both SSMS and SQLcmd. When using SQLcmd, use the -A switch to get DAC access to the DB server.

Using DAC with SSMS is bit more tricky. First of all, it cannot be done from the object explorer. Open up SSMS and cancel out of the current connection dialog box. You are now presented with SSMS without a connection. Click on ‘New Query‘. In the ‘connect to server‘ dialog box specify admin:ServerName/InstanceName. Generally only the server/instance is specified. Once the ‘admin:’ is inserted at the beginning, DAC is setup. For further reading, click here.


Thinking about someting? Leave a Reply...

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

WordPress.com Logo

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

Google+ photo

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

Twitter picture

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

Facebook photo

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


Connecting to %s