Search

After installing SP1 SQL Server 2012 Activity monitor gives Access denied. by CERWK

Closed
as By Design Help for as By Design

4
0
Sign in
to vote
Type: Bug
ID: 770897
Opened: 11/13/2012 7:50:09 AM
Access Restriction: Public
0
Workaround(s)
2
User(s) can reproduce this bug
Yesterday I was able to use Activity monitor in 2012 management studio to view Activity on SQL Server 2008 R2. I installed 2012 SP 1 now I get access denied on the Servers that I connect to with domain authentication. Servers connected to with SQL Server authentication still work, and 2005 management studio Activity monitor still works. Other users who have not installed SP1 are still able to run activity monitor through 2012 management studio. I can connect to the servers, and run queries on user tables, just cannot run Activity Monitor. Does not make a difference if I run management studio as administrator, same results.
Details (expand)

Product Language

English

Version

SQL Server 2012 - Developer Edition

Category

Tools (SSMS, Agent, Profiler, Migration, etc.)

Operating System

Windows 7 Enterprise (SP1)

Operating System Language

US English

Steps to Reproduce

Install SP1 on SQL Server 2012 then connect using Windows authentication.

Actual Results

===================================

The Activity Monitor is unable to execute queries against server ###.###.###.###.
Activity Monitor for this instance will be placed into a paused state.
Use the context menu in the overview pane to resume the Activity Monitor.

===================================

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) (mscorlib)

------------------------------
Program Location:

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at Microsoft.SqlServer.Management.ResourceMonitoring.SqlPerfmonProcessReader.get_LogicalCpuCount()
at Microsoft.SqlServer.Management.ResourceMonitoring.SqlPerfmonProcessReader.GetSqlProcessCpuUtilization()
at Microsoft.SqlServer.Management.ResourceMonitoring.BackgroundSqlCpuTask.Execute()
at Microsoft.SqlServer.Management.ResourceMonitoring.BackgroundWorkRequest.Execute()
at Microsoft.SqlServer.Management.ResourceMonitoring.BackgroundWorkRequestQueue.BackgroundWorker_DoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Expected Results

To be able to view Activity on the Server.

Platform

X64

Virtualization

 
File Attachments
0 attachments
Sign in to post a comment.
Posted by woodsy99 on 5/16/2013 at 1:54 AM
Im getting the Access Denied error on a Windows 2008 R2 machine using SQL 2012 Sp1, connecting from another domain using SQL authentication. It was working fine for months even with the Service Pack but has just started to block access from my management studio on my desktop
Posted by Microsoft on 2/1/2013 at 7:44 AM
If you’re getting Access Denied – unfortunately the only way is to either enable DCOM permissions as it was suggested in the workaround, or to upgrade to more recent OS. Windows Server 2003 is out of regular support cycle anyway (http://support.microsoft.com/lifecycle/search/default.aspx?sort=PN&alpha=windows+server&Filter=FilterNO)

If you’re getting “Invalid Query” error message in the same configuration – I’d recommend look at this hotfix, since it addresses the issue: http://support.microsoft.com/kb/932370

Vladimir Svidersky [MS SQL SERVER]
Posted by CERWK on 12/13/2012 at 6:25 AM
And you didn't list this as a breaking change when upgrading to sp1 in the docs??
Posted by Microsoft on 12/13/2012 at 6:12 AM
If you are remotely accessing to a server, 2012 SP1 requires additional permissions. The user needs to have remote access to the computer through DCOM.
Posted by Kevin Eckart on 11/28/2012 at 8:33 AM
I am also having this issue.
Posted by CERWK on 11/21/2012 at 8:00 AM
Could DCOM rights on the server for my user have changed due to me installing SQL server 2012 sp1 on my workstation? Or does 2012 sp1 require additional DCOM rights that were not necessary before sp1 was installed? This worked prior to installation of sp1.
Posted by Microsoft on 11/20/2012 at 3:48 PM
Hi,

Are you remotely accesing to a server? This issue could have occured if you don't have remote access to the computer through DCOM. Typically, DCOM errors occur when connecting to a remote computer with a different operating system version. If this is the case, please try give the user Remote Launch and Remote Activation permissions.

Please follow the steps:

1. Click Start, click Run, type DCOMCNFG, and then click OK.
2. In the Component Services dialog box, expand Component Services, expand Computers, and then right-click My Computer and click Properties.
3. In the My Computer Properties dialog box, click the COM Security tab.
4. Under Launch and Activation Permissions, click Edit Limits.
5. In the Launch Permission dialog box, select your user and group in the Group or user names box. In the Allow column under Permissions for User, select Remote Launch and select Remote Activation, and then click OK.
6. Under Access Permissions, click Edit Limits and give Remote Access to your user.
7. Go to DCOM Config(Expand My Computer), find "Windows Management Instrumentation", right-click and select Properties
8. In the Security tab, click on Edit under Launch and Activation Permissions, and give your user Remote Launch and Remote Activation.

For more information, see Securing a Remote WMI Connection
http://msdn.microsoft.com/en-us/library/windows/desktop/aa393266(v=vs.85).aspx
Posted by Microsoft on 11/14/2012 at 1:11 PM
Thank you for reporting this issue - we are investigating and will update you when we have more information.

Thanks,

Alex Grach [MSFT SQL SERVER]
Sign in to post a workaround.