This article refer to the creation of the database ACME_POS in a SQL Server and the load of the data set that you need to perform the tutorial of the book : Oracle Warehouse Builder 11g: Getting Started (Paperback) by Robert Griesemer.
The original instructions can also be found in the files ending with the term instruction.
Verify that you launch the SQL Server Management Studio application connect as an administrative user with the “sysadmin” role.
Normally if you choose during the installation the Windows security configuration, you can connect with the same user or you must perform this operations to give the sysadmin server role to your Windows account :
Before the next step, as I add this problem Sql Server (see Sql Server section), I advise you to run this script before :
USE [ACME_POS]
GO
CREATE LOGIN [acme_dw_user] WITH PASSWORD=N'acme_dw_user', DEFAULT_DATABASE=[ACME_POS], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO
ACME_POS_Bulk_Load_Data.bat :
bcp ACME_POS.dbo.Employees in Employees.dat -f Employees-n..xml -T -S Localhost\SQLExpress
bcp ACME_POS.dbo.Items in Items.dat -f Items-n..xml -T -S Localhost\SQLExpress
bcp ACME_POS.dbo.Regions in Regions.dat -f Regions-n..xml -T -S Localhost\SQLExpress
bcp ACME_POS.dbo.Registers in Registers.dat -f Registers-n..xml -T -S Localhost\SQLExpress
bcp ACME_POS.dbo.Stores in Stores.dat -f Stores-n..xml -T -S Localhost\SQLExpress
bcp ACME_POS.dbo.Vendors in Vendors.dat -f Vendors-n..xml -T -S Localhost\SQLExpress
bcp ACME_POS.dbo.POS_Transactions in POS_Transactions.dat -f POS_Transactions-n..xml -T -S Localhost\SQLExpress
Start the script:
C:\ACME_POS_Data_Load_Script_Files>ACME_POS_Bulk_Load_Data.bat
Output :
..................
C:\ACME_POS_Data_Load_Script_Files>bcp ACME_POS.dbo.POS_Transactions in POS_Tran
sactions.dat -f POS_Transactions-n..xml -T -S Localhost\SQLExpress
Starting copy...
1000 rows sent to SQL Server. Total sent: 1000
1000 rows sent to SQL Server. Total sent: 2000
1000 rows sent to SQL Server. Total sent: 3000
1000 rows sent to SQL Server. Total sent: 4000
1000 rows sent to SQL Server. Total sent: 5000
1000 rows sent to SQL Server. Total sent: 6000
1000 rows sent to SQL Server. Total sent: 7000
1000 rows sent to SQL Server. Total sent: 8000
1000 rows sent to SQL Server. Total sent: 9000
1000 rows sent to SQL Server. Total sent: 10000
10026 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 406 Average : (24694.58 rows per sec.)
Msg 15007, Level 16, State 1, Line 2
'acme_dw_user' is not a valid login or you do not have permission.
If you receive this message, execute this script :
USE [ACME_POS]
GO
CREATE LOGIN [acme_dw_user] WITH PASSWORD=N'acme_dw_user', DEFAULT_DATABASE=[ACME_POS], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO