SQL Server 2012 Integration Services failed when connecting thru SSMS

后端 未结 5 2094
借酒劲吻你
借酒劲吻你 2020-12-25 10:24

I had recently installed SQL server 2012 and I used mostly the default settings. Database works fine and I can happily connect using SSMS (SQL Server Management Studio) but

相关标签:
5条回答
  • 2020-12-25 11:02

    Go to all programs Click on Microsoft SQL Server 2012 folder Right click on SQL Server Management Studio Click on Run as Administrator

    This should take care of problem for now. (With this you need to always repeat the same process). To avoid this every time and for a more persistent solution you need to get permission(s). Please do the following process and you should be good.

    In previous versions of SQL Server, by default when you installed SQL Server all users in the Users group had access to the Integration Services service. When you install the current release of SQL Server, users do not have access to the Integration Services service. The service is secure by default. After SQL Server is installed, the administrator must grant access to the service.

    To grant access to the Integration Services service

    1. Run Dcomcnfg.exe. Dcomcnfg.exe provides a user interface for modifying certain settings in the registry.
    2. In the Component Services dialog, expand the Component Services > Computers > My Computer > DCOM Config node.
    3. Right-click Microsoft SQL Server Integration Services 11.0, and then click Properties.
    4. On the Security tab, click Edit in the Launch and Activation Permissions area.
    5. Add users and assign appropriate permissions, and then click Ok.
    6. Repeat steps 4 - 5 for Access Permissions.
    7. Restart SQL Server Management Studio.
    8. Restart the Integration Services Service.

    (Source MSDN)

    I hope this will help

    0 讨论(0)
  • 2020-12-25 11:09

    Right Click on the Sql Server Management Studio and select Run as Administrator and try to connect if it is installed on the local instance

    0 讨论(0)
  • 2020-12-25 11:10

    Lost a day of work on that problem. My package has a .NET script task to copy file from a shared network folder to a local folder and I was stuck with the "access denied" exception every time I tried to execute the package from the server (Through SQL Studio). The package works fine when running locally.

    Tried many things picked up here and there and at the end of the day what worked is to create a Job (owner is sa) which execute the package as SSISExecutor.

    I have to mention that the file on the network has read access for everyone, and that I still don't understand what was wrong.

    0 讨论(0)
  • 2020-12-25 11:15

    As I understand it, User Access Control, or UAC, can basically intercept requests for your group membership so in this case, it appears it was preventing your membership getting passed to SQL Server.

    Others have noted in their comments that you may still need to right click and run SSMS as an Administrator.

    As noted by an astute observer "This is a quick-fix, not a real solution. People shouldn't just be running stuff as administrator. These security walls are in place for a reason" And I agree. UAC is designed to get Windows users into a Principle of least privilege mindset - only escalate to a powerful account when required. The issue is that SSMS is known to not "play well" with UAC. As I see it, this leaves you with three options

    • You can turn off UAC and get your work done
    • Leave UAC on and tell your boss you are unable to work
    • Write your own query tool that is not affected by UAC
    0 讨论(0)
  • 2020-12-25 11:23

    You should check to see what user the SSIS Service is running under. Go to Start > Run > Type "services.msc" and scroll down to the SQL Server Integration Services 11.0 entry. Right click and check the properties to find out what user it's running under. The second tab should be the LogOn tab. Since you're just running on a local instance, you can set your user as the LogOn User account and SSIS will have the same permissions that you do.

    0 讨论(0)
提交回复
热议问题