December 21, 2008 at 5:31 am
The sp sp_dba_DAC created without any issues and is giving desired results when fired from within the SSMS.
However i'm unable to fire it from using sqlcmd. Getting following error:
HResult 0xFFFFFFFF, Level 16, State 1
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 found that SQL Server Browser was disabled, i enabled it and started it and again fired it. Still same error.
December 21, 2008 at 8:44 am
I had the very same experience as Pradeep Singh:
- My SQL Server Browser is running.
- Remote connections are enabled (both TCP/IP and named pipes).
- DBCC TRACEON (7806, -1): done.
Running in SSMS: OK. Running from a command prompt: "An error occurred while obtaining the dedicated administrator connection (DAC) port ...".
Anyone knows what is missing ?
Thanks, Leendert.
December 21, 2008 at 9:20 am
Have you enabled the DAC? It's disabled by default. Use the Surface Area tool to turn it on.
December 21, 2008 at 12:00 pm
Steve,
Bingo. Great thanks.
We learn every day.
Leendert.
December 22, 2008 at 1:26 pm
Thanks to everyone for help me out here and for the nice comments about the article. In the new year I'll have more time and will try to update the code and add more information.
Thanks,
Rudy
Rudy
December 22, 2008 at 2:01 pm
The CROSS APPLY line below returns this error
Msg 102, Level 15, State 1, Line 43
Incorrect syntax near '.'.
This is true for the original code from the article and the formatted code in this discussion. What am I missing?
Thanks,
Bill
SELECT '-- Shows top 5 high cpu used statemants'
SELECT TOP 5 total_worker_time/execution_count AS [Avg CPU Time],
SUBSTRING(st.text, (qs.statement_start_offset/2)+1,
((CASE qs.statement_end_offset
WHEN -1 THEN DATALENGTH(st.text)
ELSE qs.statement_end_offset
END - qs.statement_start_offset)/2) + 1) AS statement_text
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) AS st
ORDER BY total_worker_time/execution_count DESC;
December 22, 2008 at 2:08 pm
oops....
never mind. I didn't notice the additional pages of comments. my db was set to compatibility level 8.0.
Sorry for the repeated (and already answered) question.
December 22, 2008 at 3:06 pm
Steve Jones - Editor (12/21/2008)
Have you enabled the DAC? It's disabled by default. Use the Surface Area tool to turn it on.
Steve,
Isn't the DAC enabled by default? You only need to change the surface area to enable the Remote DAC.
Jonathan Kehayias | Principal Consultant | MCM: SQL Server 2008
My Blog | Twitter | MVP Profile
Training | Consulting | Become a SQLskills Insider
Troubleshooting SQL Server: A Guide for Accidental DBAs[/url]
December 24, 2008 at 2:59 pm
There are 2 things that you need to check before executing the code in the article.
1) Enable DAC. This is DISABLED by default as per Microsoft.
2) Database should be at level 9.0 or greater. If you have placed your database in 8.0 for backward compatibility then some of the data returned will not shown as correct.
I guess I should have mentioned this in the article.
Rudy
Rudy
Viewing 9 posts - 31 through 38 (of 38 total)
You must be logged in to reply to this topic. Login to reply