SQL服务器AdventureWorks激活错误,不知道是我的路径不对还是我的数据库不对

AdventureWorks activation error in SQL Server, I don't know if it is my pathway is wrong or my database is wrong

我正在尝试将 AdventureWorks 添加到我的 SQL Server 2014 Management Studio。在 SQLCMD 代码中打开查询后,我将 setvar 路径更改为我的服务器名称。

如何修复此错误?

我收到以下错误消息:

Started - 2016-07-09 00:32:33.533

*** Dropping Database

*** Creating Database

Msg 5133, Level 16, State 1, Line 89
Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL12.DACHENMCIS\MSSQL\DATA\AdventureWorksDW2014_Data.mdf" failed with the operating system error 3(The system cannot find the path specified.).

Msg 1802, Level 16, State 1, Line 89
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

*** Checking for AdventureWorksDW2014 Database
*** AdventureWorksDW2014 Database does not exist. Make sure that the script is being run in SQLCMD mode and that the variables have been correctly set.

Msg 911, Level 16, State 1, Line 119
Database 'AdventureWorksDW2014' does not exist. Make sure that the name is entered correctly.

Msg 208, Level 16, State 1, Procedure vDMPrep, Line 1683
Invalid object name 'dbo.FactInternetSales'.

Msg 208, Level 16, State 1, Procedure vTimeSeries, Line 1731
Invalid object name 'dbo.vDMPrep'.

Msg 208, Level 16, State 1, Procedure vTargetMail, Line 1796
Invalid object name 'dbo.DimCustomer'.

Msg 208, Level 16, State 1, Procedure vAssocSeqOrders, Line 1828
Invalid object name 'dbo.vDMPrep'.

向 "C:\Program Files\Microsoft SQL Server\MSSQL12.DACHENMCIS\MSSQL\DATA\" 添加权限,您还没有获得全部权限。

或者,如果路径可能无效,请将 "C:\Program Files\Microsoft SQL Server\MSSQL12.DACHENMCIS\MSSQL\DATA\" 替换为您拥有完全权限的现有文件夹路径,这样就没问题了。