我正在尝试测试Azure数据仓库。我成功创建并连接到数据库,但是当我尝试加载表时,我遇到了麻烦。我正在尝试执行以下说明:
To install AdventureWorksSQLDW2012:
-----------------------------------
4. Extract files from AdventureWorksSQLDW2012.zip file into a directory.
5. Edit aw_create.bat setting the following variables:
a. server=<servername> from step 1. e.g. mylogicalserver.database.windows.net
b. user=<username> from step 1 or another user with proper permissions
c. password=<passwordname> for user in step 5b
d. database=<database> created in step 1
e. schema=<schema> this schema will be created if it does not yet exist
6. Run aw_create.bat from a cmd prompt, running from the directory where the files were unzipped to.
This script will...
a. Drop any Adventure Works tables or views that already exist in the schema
b. Create the Adventure Works tables and views in the schema specified
c. Load each table using bcp
d. Validate the row counts for each table
e. Collect statistics on every column for each table
我完成了安装bcp和sqlcmd的先决条件并使用了 - ?命令确认安装。
不幸的是,当我尝试完成上面的第6步时,我收到以下错误:
REM AdventureWorksSQLDW2012示例数据库版本3.0 for DW Service Tue 06/27/2017 20:31:01.99必须安装Bcp。
是否有其他人遇到此错误或任何人都可以建议一个潜在的解决方案。
更新:我还将BCP所在的路径复制到路径环境变量中。仍然没有运气。
答案 0 :(得分:0)
aw_create.bat包含一行,您需要提供bcp程序的路径。一旦提供了ans保存脚本就像一个魅力。