我正在尝试在服务器上配置ssrs,当我尝试创建ReportServer和ReportServerTempDB时,我收到以下错误:
System.Data.SqlClient.SqlException:文件的目录查找" D:\ microsoft sql server \ data \ ReportServer.mdf"操作系统错误3失败(系统找不到指定的路径。)。
我尝试通过在对象资源管理器中右键单击服务器,然后在属性>数据库设置中更改默认数据目录,然后在此处设置路径,但仍然出现错误。
答案 0 :(得分:1)
看起来您没有权限写入您指定的文件夹。
您需要确保SQL Server正在运行的服务帐户对您尝试写入的文件夹路径具有写入权限。
修改强>
使用以下步骤:
//SqlExpress
1.Click the Windows Start button, and then click Run. The Run dialog box appears.
2.Type Services.msc into the Open field, and then click OK. The Services
panel appears:
3.Right-click the SQL Server (SqlEx[ress) service, and then click Properties from the shortcut menu. The SQL Server (SqlExpress) Properties (Local Computer) dialog box appears:
4.On the Log On tab, select Local System account for the Log on as option.
5.Press Apply and then press OK on the dialog box that appears.
6.Click on the General tab and then press Stop the stop the service, and Start to restart the SqlExpress service.
7.Press OK and close the services Console.
8.Launch SqlExpress and attempt to now restore the database.