TECHED

SQL Server 2005 detect DAC session with TSQL

Published 09 May 08 11:11 AM | SQL Master 

SQL Server 2005 has introduce a secret-door for Admins to identify and resolve any connect lockout issues within your database instance, as on http://sqlserver-qa.net/blogs/tools/archive/2007/08/04/dedicated-administrator-console-dac-saved-an-important-day-for-a-dba.aspx how.  

Use the following query to detect it


Select t2.session_id, t2.program_name, t2.host_name, t1.name FROM sys.tcp_endpoints as t1 JOIN sys.dm_exec_sessions as t2 ON t1.endpoint_id=t2.endpoint_id WHERE t1.name=‘Dedicated Admin Connection’

Comments

# SQL Server Transact-SQL (SSQA.net) : SQL Server 2005 detect DAC session with TSQL said on May 9, 2008 11:20 AM:

PingBack from http://sqlserver-qa.net/blogs/t-sql/archive/2008/05/09/4192.aspx

# Other SQL Server Blogs around the Web said on May 9, 2008 11:52 AM:

SQL Server 2005 has introduce a secret-door for Admins to identify and resolve any connect lockout issues

Anonymous comments are disabled

About SQL Master

**__________________________________** SQL Server MVP, Sr. DBA & industry expert. - Knowledge is of two kinds. We know a subject ourselves or we know where we can find information on it. It is also a power and you will gain by sharing it.