无法在 SQL Server 中保存数据库默认位置 [英] Can't save database default locations in SQL Server

查看:36
本文介绍了无法在 SQL Server 中保存数据库默认位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 SQL Server Management Studio 更改数据和日志的默认目录.我更改路径然后单击确定,但它总是恢复到程序文件中的旧目录.其他人见过这个错误吗?我使用的是 SQL Server 2012 标准版.

I'm trying to change the default directories for data and logs using SQL Server Management Studio. I change the path then click ok but it always reverts back to the old directory in Program Files. Anyone else seen this bug? I'm using SQL Server 2012 Standard.

我确实看到注册表中保存了正确的值,但工作室或其他会创建新数据库的连接应用程序并未遵守这些值.

I do see that the correct values are saved in the registry, but they aren't being obeyed by the studio or other connecting applications that would create new databases.

推荐答案

根据微软的规定,您必须重新启动 SQL Server 服务才能生效.

According to Microsoft, you must restart the SQL Server service for this to take effect.

您可以通过配置管理器轻松完成此操作,或者通过 services.msc 管理单元(如果您愿意).

You can do this easily via the Configuration Manager, or via the services.msc snap-in if you prefer that.

这篇关于无法在 SQL Server 中保存数据库默认位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆