------------------------------------------------------------------
--                                                              --
--  File:  BulkInsert_23.SQL                                    --
--  File:  SpaceUsedInstance_23.SQL                             --
--         Microsoft TPC-E Benchmark Kit Ver.   1.14.0-1031     --
--         Copyright Microsoft 2008, 2009                       --
--                                                              --
--         This script is generated by the Setup_tpce.vbs file  --
--                                                              --
------------------------------------------------------------------
 
USE  tpce
GO
 
SET NOCOUNT ON
GO
 
PRINT 'BULK INSERT ACCOUNT_PERMISSION - STREAM 23'
GO
BULK INSERT ACCOUNT_PERMISSION
FROM 'c:\mp\bk2\Flat8\AccountPermission.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT ACCOUNT_PERMISSION - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT ADDRESS - STREAM 23'
GO
BULK INSERT ADDRESS
FROM 'c:\mp\bk2\Flat8\Address.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT ADDRESS - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT BROKER - STREAM 23'
GO
BULK INSERT BROKER
FROM 'c:\mp\bk2\Flat8\Broker.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 500,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT BROKER - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT COMPANY - STREAM 23'
GO
BULK INSERT COMPANY
FROM 'c:\mp\bk2\Flat8\Company.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT COMPANY - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT COMPANY_COMPETITOR - STREAM 23'
GO
BULK INSERT COMPANY_COMPETITOR
FROM 'c:\mp\bk2\Flat8\CompanyCompetitor.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT COMPANY_COMPETITOR - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT CUSTOMER - STREAM 23'
GO
BULK INSERT CUSTOMER
FROM 'c:\mp\bk2\Flat8\Customer.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT CUSTOMER - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT CUSTOMER_ACCOUNT - STREAM 23'
GO
BULK INSERT CUSTOMER_ACCOUNT
FROM 'c:\mp\bk2\Flat8\CustomerAccount.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT CUSTOMER_ACCOUNT - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT CUSTOMER_TAXRATE - STREAM 23'
GO
BULK INSERT CUSTOMER_TAXRATE
FROM 'c:\mp\bk2\Flat8\CustomerTaxrate.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT CUSTOMER_TAXRATE - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT DAILY_MARKET - STREAM 23'
GO
BULK INSERT DAILY_MARKET
FROM 'c:\mp\bk2\Flat8\DailyMarket.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT DAILY_MARKET - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT FINANCIAL - STREAM 23'
GO
BULK INSERT FINANCIAL
FROM 'c:\mp\bk2\Flat8\Financial.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT FINANCIAL - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT LAST_TRADE - STREAM 23'
GO
BULK INSERT LAST_TRADE
FROM 'c:\mp\bk2\Flat8\LastTrade.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT LAST_TRADE - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT NEWS_ITEM_TEMP - STREAM 23'
GO
BULK INSERT NEWS_ITEM_TEMP
FROM 'c:\mp\bk2\Flat8\NewsItem.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT NEWS_ITEM_TEMP - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT NEWS_XREF - STREAM 23'
GO
BULK INSERT NEWS_XREF
FROM 'c:\mp\bk2\Flat8\NewsXref.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT NEWS_XREF - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT SECURITY - STREAM 23'
GO
BULK INSERT SECURITY
FROM 'c:\mp\bk2\Flat8\Security.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT SECURITY - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT WATCH_ITEM - STREAM 23'
GO
BULK INSERT WATCH_ITEM
FROM 'c:\mp\bk2\Flat8\WatchItem.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT WATCH_ITEM - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT WATCH_LIST - STREAM 23'
GO
BULK INSERT WATCH_LIST
FROM 'c:\mp\bk2\Flat8\WatchList.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT WATCH_LIST - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT CASH_TRANSACTION - STREAM 23'
GO
BULK INSERT CASH_TRANSACTION
FROM 'c:\mp\bk2\Flat8\CashTransaction.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT CASH_TRANSACTION - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT HOLDING - STREAM 23'
GO
BULK INSERT HOLDING
FROM 'c:\mp\bk2\Flat8\Holding.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT HOLDING - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT HOLDING_HISTORY - STREAM 23'
GO
BULK INSERT HOLDING_HISTORY
FROM 'c:\mp\bk2\Flat8\HoldingHistory.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT HOLDING_HISTORY - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT HOLDING_SUMMARY - STREAM 23'
GO
BULK INSERT HOLDING_SUMMARY
FROM 'c:\mp\bk2\Flat8\HoldingSummary.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT HOLDING_SUMMARY - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT SETTLEMENT - STREAM 23'
GO
BULK INSERT SETTLEMENT
FROM 'c:\mp\bk2\Flat8\Settlement.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT SETTLEMENT - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT TRADE - STREAM 23'
GO
BULK INSERT TRADE
FROM 'c:\mp\bk2\Flat8\Trade.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT TRADE - STREAM 23'
PRINT ' '
GO
PRINT 'BULK INSERT TRADE_HISTORY - STREAM 23'
GO
BULK INSERT TRADE_HISTORY
FROM 'c:\mp\bk2\Flat8\TradeHistory.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT TRADE_HISTORY - STREAM 23'
PRINT ' '
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT - STREAM 23'
GO
