简体   繁体   English

无法修改 SQL Server 维护计划

[英]Unable to modify the SQL Server Maintenance Plan

I am using Microsoft SQL Server 2014 (SP2) (KB3171021) Standard Edition (64-bit) and I have created one Database Maintenance Plan on this server.我正在使用 Microsoft SQL Server 2014 (SP2) (KB3171021) 标准版(64 位),并且我在此服务器上创建了一个数据库维护计划。 I am able to modify all of the properties of the plan, however when I try to select the databases it gives me the following Error:我能够修改计划的所有属性,但是当我尝试选择数据库时,它给了我以下错误:

This task requires the connection to be initialized.此任务需要初始化连接。

在此处输入图片说明

And when I click on "ok" I can see the following window but unable to see any database in it:当我单击“确定”时,我可以看到以下窗口,但无法看到其中的任何数据库:

在此处输入图片说明

Can anyone explain this or give me any solution on this?任何人都可以解释这一点或给我任何解决方案吗?

In order to access the "Local Server Connection" (creds you connected with in SSMS) to view databases instead of a specifically named saved connection, you have to launch SSMS as an administrator.为了访问“本地服务器连接”(您在 SSMS 中连接的凭据)以查看数据库而不是特定命名的已保存连接,您必须以管理员身份启动 SSMS。

By default with UAC enabled, it won't ask when you open it, so you have to right-click and select "Run As Administrator" -- or you can save a shortcut that's set to always Run As Administrator.默认情况下,启用 UAC 时,它不会询问您何时打开它,因此您必须右键单击并选择“以管理员身份运行”——或者您可以保存设置为始终以管理员身份运行的快捷方式。

I had another issue - different authorization modes.我有另一个问题 - 不同的授权模式。 The task was created with Windows auth user, and I logged in as SQL Server mode user.该任务是使用 Windows auth 用户创建的,我以 SQL Server 模式用户身份登录。 When open maintenance task at the top there is a menu to manage connections to server for this task - I entered their credentials of sa user and saved the task.当在顶部打开维护任务时,有一个菜单来管理此任务的服务器连接 - 我输入了他们的 sa 用户凭据并保存了任务。 Thus there will no be such error any more.这样就不会再有这样的错误了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM