Help - I can not see the forrest through the trees today!
Most likely a simple issue...
Required to upgrade from SQL Server 2000 to 2008; and need to convert DTS to BULK INSERT since DBA Team does not support SSIS. alternative is to use semi-complex ETL Data-Stage (Unix).
I have a BCP Command Line that works:
And I wanted to convert to Bulk Insert and use an SP to launch the code... I am attempting to run code in Query Windows under SQL Server 2008 as a test:
Error Message is:
Msg 4832, Level 16, State 1, Line 2
Bulk load: An unexpected end of file was encountered in the data file.
Msg 7399, Level 16, State 1, Line 2
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 2
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
Note Following Works Loading 1st 1000 rows:
Thanks in Advance....
Steve
Steve Medvid
IT Consultant & Web Master
Most likely a simple issue...
Required to upgrade from SQL Server 2000 to 2008; and need to convert DTS to BULK INSERT since DBA Team does not support SSIS. alternative is to use semi-complex ETL Data-Stage (Unix).
I have a BCP Command Line that works:
Code:
C:\Program Files\Microsoft SQL Server\100\Tools\Binn>bcp apolyDB.apoly.tblextract_temp IN \\server\Import\val_ext.txt -o c:\testbcp.txt -SDALZ01\APOLYD -Usvc_acct1 -b25000 -t~ -c
And I wanted to convert to Bulk Insert and use an SP to launch the code... I am attempting to run code in Query Windows under SQL Server 2008 as a test:
Code:
TRUNCATE TABLE APolyDB.APOLY.tblExtract_TEMP
BULK INSERT
APolyDB.APOLY.tblExtract_TEMP
FROM
'val_ext.txt'
WITH
( FIELDTERMINATOR = '~',
BATCHSIZE = 25000,
ERRORFILE = '\\server\Import\ImportErrors.txt')
Error Message is:
Msg 4832, Level 16, State 1, Line 2
Bulk load: An unexpected end of file was encountered in the data file.
Msg 7399, Level 16, State 1, Line 2
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 2
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
Note Following Works Loading 1st 1000 rows:
Code:
BULK INSERT
APolyDB.APOLY.tblExtract_TEMP
FROM
'val_ext.txt'
WITH
( FIELDTERMINATOR = '~',
BATCHSIZE = 25000,
FIRSTROW = 1,
LASTROW = 1000,
ERRORFILE = '\\server\Import\ImportErrors.txt')
Thanks in Advance....
Steve
Steve Medvid
IT Consultant & Web Master