|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, October 13, 2009 3:09 PM
Points: 1,357,
Visits: 1,020
|
|
I cannot connect an SQL instance using DAC from either a local machine or from a remote machine. The error I came across is as follow.
SQL Network Interfaces: An error occurred while obtaining the dedicated administrator connection (DAC) port. Make sure that SQL Browser is running, or check the error log for the port number [xFFFFFFFF]. Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.. Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
I checked the following spots DAC is enabled from the SQL Surface Area Configuration. Remote Admin Connection is enabled from sp_configure. SQL Server Browser is running. I checked the port number 1434. It is open and is listening.
What did I miss here? Any input will be greatly appreciated.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Monday, October 26, 2009 12:25 AM
Points: 510,
Visits: 1,036
|
|
Hi,
Can you execute this sp_configure 'remote admin connections', 1;
And DAC port is assigned dynamically it trys to connect using TCP on port 1434 and it is failing it tries to check with other ports. I think you have to execute that and try and if that does not work try connecting with sqlcmd –Stcp:
Thanks Chandra Mohan N
Thanks Chandra Mohan
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Today @ 2:24 AM
Points: 4,722,
Visits: 3,490
|
|
Books online states these restrictions:
Restrictions Because the DAC exists solely for diagnosing server problems in rare circumstances, there are some restrictions on the connection:
To guarantee that there are resources available for the connection, only one DAC is allowed per instance of SQL Server. If a DAC connection is already active, any new request to connect through the DAC is denied with error 17810.
To conserve resources, SQL Server 2005 Express Edition does not listen on the DAC port unless started with a trace flag 7806.
The DAC initially attempts to connect to the default database associated with the login. After it is successfully connected, you can connect to the master database. If the default database is offline or otherwise not available, the connection will return error 4060. However, it will succeed if you override the default database to connect to the master database instead using the following command:
sqlcmd –A –d master
We recommend that you connect to the master database with the DAC because master is guaranteed to be available if the instance of the Database Engine is started.
SQL Server prohibits running parallel queries or commands with the DAC. For example, error 3637 is generated if you execute either of the following statements with the DAC: RESTORE BACKUP
Only limited resources are guaranteed to be available with the DAC. Do not use the DAC to run resource-intensive queries (for example. a complex join on large table) or queries that may block. This helps prevent the DAC from compounding any existing server problems. To avoid potential blocking scenarios, if you have to run queries that may block, run the query under snapshot-based isolation levels if possible; otherwise, set the transaction isolation level to READ UNCOMMITTED and set the LOCK_TIMEOUT value to a short value such as 2000 milliseconds, or both. This will prevent the DAC session from getting blocked. However, depending on the state that the SQL Server is in, the DAC session might get blocked on a latch. You might be able to terminate the DAC session using CNTRL-C but it is not guaranteed. In that case, your only option may be to restart SQL Server. Do any of these match your case ?
Don't drive faster than your guardian angel can fly ... but keeping both feet on the ground won't get you anywhere 
Very usefull HowTo for forums: - How to post Performance Problems - How to post data/code to get the best help
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, October 13, 2009 3:09 PM
Points: 1,357,
Visits: 1,020
|
|
Thank you so much for the input above. I have tried all you recommended. It still does not work now, however.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Today @ 2:24 AM
Points: 4,722,
Visits: 3,490
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, October 13, 2009 3:09 PM
Points: 1,357,
Visits: 1,020
|
|
I used a sa account. My SQL Server version is SQL 2005 enterprise edition with SP2.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 5:06 PM
Points: 1,322,
Visits: 6,479
|
|
Please look thru sql logs to find the port DAC is listening to and mention that port number wth the server name while taking DAC connection.
MJ
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, October 13, 2009 3:09 PM
Points: 1,357,
Visits: 1,020
|
|
I did check. BOL states that DAC check default port first. If the default port does not exist, it will automatically check the open port for DAC.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Friday, October 30, 2009 4:50 AM
Points: 264,
Visits: 883
|
|
Out if interest is your environment a clustered server configuration?
-------------------------------------------------------------------------------------------------------------------------------------------------- John Sansom | www.johnsansom.com * Calling out all SQL Server experts. Have you entered the SQL Server Guru Challenge *
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Tuesday, October 27, 2009 10:33 PM
Points: 330,
Visits: 444
|
|
i am also facing the similar problem in my sql server clustering configuration . it was not allowing me to open the surface area configuration wizard after changing the remote machine name as virtual machine name its allowing to open the surface area window now but its not allowing to modify the settings in the surface area configuration wizard ...its giving the error message you cannot modify the surface area configuration for clustering services ...
Thnks in Advance.
|
|
|
|