------------------------------------------------------------------
--                                                              --
--  File:  BulkInsert_83.SQL                                    --
--  File:  SpaceUsedInstance_83.SQL                             --
--         Microsoft TPC-E Benchmark Kit Ver.   1.12.0-1022        --
--         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 83'
GO
BULK INSERT ACCOUNT_PERMISSION
FROM 'v:\Device\flatfile21\83\AccountPermission.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 203000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT ACCOUNT_PERMISSION - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT ADDRESS - STREAM 83'
GO
BULK INSERT ADDRESS
FROM 'v:\Device\flatfile21\83\Address.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 42004,
       TABLOCK)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT ADDRESS - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT BROKER - STREAM 83'
GO
BULK INSERT BROKER
FROM 'v:\Device\flatfile21\83\Broker.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 280,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT BROKER - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT COMPANY - STREAM 83'
GO
BULK INSERT COMPANY
FROM 'v:\Device\flatfile21\83\Company.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 14000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT COMPANY - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT COMPANY_COMPETITOR - STREAM 83'
GO
BULK INSERT COMPANY_COMPETITOR
FROM 'v:\Device\flatfile21\83\CompanyCompetitor.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 42000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT COMPANY_COMPETITOR - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT CUSTOMER - STREAM 83'
GO
BULK INSERT CUSTOMER
FROM 'v:\Device\flatfile21\83\Customer.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 28000,
       TABLOCK)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT CUSTOMER - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT CUSTOMER_ACCOUNT - STREAM 83'
GO
BULK INSERT CUSTOMER_ACCOUNT
FROM 'v:\Device\flatfile21\83\CustomerAccount.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 140000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT CUSTOMER_ACCOUNT - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT CUSTOMER_TAXRATE - STREAM 83'
GO
BULK INSERT CUSTOMER_TAXRATE
FROM 'v:\Device\flatfile21\83\CustomerTaxrate.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 56000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT CUSTOMER_TAXRATE - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT DAILY_MARKET - STREAM 83'
GO
BULK INSERT DAILY_MARKET
FROM 'v:\Device\flatfile21\83\DailyMarket.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 25029900,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT DAILY_MARKET - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT FINANCIAL - STREAM 83'
GO
BULK INSERT FINANCIAL
FROM 'v:\Device\flatfile21\83\Financial.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 280000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT FINANCIAL - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT LAST_TRADE - STREAM 83'
GO
BULK INSERT LAST_TRADE
FROM 'v:\Device\flatfile21\83\LastTrade.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 19180,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT LAST_TRADE - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT NEWS_ITEM_TEMP - STREAM 83'
GO
BULK INSERT NEWS_ITEM_TEMP
FROM 'v:\Device\flatfile21\83\NewsItem.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 28000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT NEWS_ITEM_TEMP - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT NEWS_XREF - STREAM 83'
GO
BULK INSERT NEWS_XREF
FROM 'v:\Device\flatfile21\83\NewsXref.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 28000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT NEWS_XREF - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT SECURITY - STREAM 83'
GO
BULK INSERT SECURITY
FROM 'v:\Device\flatfile21\83\Security.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 19180,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT SECURITY - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT WATCH_ITEM - STREAM 83'
GO
BULK INSERT WATCH_ITEM
FROM 'v:\Device\flatfile21\83\WatchItem.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 2828000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT WATCH_ITEM - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT WATCH_LIST - STREAM 83'
GO
BULK INSERT WATCH_LIST
FROM 'v:\Device\flatfile21\83\WatchList.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 28000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT WATCH_LIST - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT CASH_TRANSACTION - STREAM 83'
GO
BULK INSERT CASH_TRANSACTION
FROM 'v:\Device\flatfile21\83\CashTransaction.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 445616640,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT CASH_TRANSACTION - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT HOLDING - STREAM 83'
GO
BULK INSERT HOLDING
FROM 'v:\Device\flatfile21\83\Holding.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 26127360,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT HOLDING - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT HOLDING_HISTORY - STREAM 83'
GO
BULK INSERT HOLDING_HISTORY
FROM 'v:\Device\flatfile21\83\HoldingHistory.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 650280960,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT HOLDING_HISTORY - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT HOLDING_SUMMARY - STREAM 83'
GO
BULK INSERT HOLDING_SUMMARY
FROM 'v:\Device\flatfile21\83\HoldingSummary.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1398600,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT HOLDING_SUMMARY - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT SETTLEMENT - STREAM 83'
GO
BULK INSERT SETTLEMENT
FROM 'v:\Device\flatfile21\83\Settlement.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 483840000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT SETTLEMENT - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT TRADE - STREAM 83'
GO
BULK INSERT TRADE
FROM 'v:\Device\flatfile21\83\Trade.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 483840000,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT TRADE - STREAM 83'
PRINT ' '
GO
PRINT 'BULK INSERT TRADE_HISTORY - STREAM 83'
GO
BULK INSERT TRADE_HISTORY
FROM 'v:\Device\flatfile21\83\TradeHistory.txt'
WITH ( FIELDTERMINATOR = '|',
       ROWS_PER_BATCH = 1166054400,
       TABLOCK,
       KEEPNULLS)
GO
SELECT 'Rows Inserted:',
@@ROWCOUNT
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT TRADE_HISTORY - STREAM 83'
PRINT ' '
GO
PRINT ' '
PRINT 'FINISHED BULK INSERT - STREAM 83'
GO
