Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

The process could not bulk copy into table '"dbo"." Expand / Collapse
Author
Message
Posted Wednesday, February 27, 2013 6:16 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, March 11, 2014 9:32 AM
Points: 52, Visits: 677
This errors Message was found in the Job History.

2013-02-27 12:28:18.758 Agent message code 20037. The process could not bulk copy into table
2013-02-27 12:28:18.838 Category:NULL
Source: Microsoft SQL Server Native Client 11.0
Number:
Message: End of file reached, terminator missing or field data incomplete
2013-02-27 12:28:18.838 Category:NULL
Source:
Number: 20253
Message: To obtain an error file with details on the errors encountered when initializing the subscribing table, execute the bcp command that appears below. Consult the BOL for more information on the bcp utility and its supported options.
2013-02-27 12:28:18.838 Category:NULL
Source:
Number: 20253
Message: bcp "TestDB"."dbo"."ReportType" in "C:\Testing\ReplData\unc\xxxxxxxxxxxxxxxx\20130227175358\xxxxxxxxb227380_514.bcp" -e "errorfile" -t"<x$3>" -r"<,@g>" -m10000 -S SqlSrvB -T -w


In the Replication "Distributor to Subscriber History'

Error messages:
The process could not bulk copy into table '"dbo"."ReportType"'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037
End of file reached, terminator missing or field data incomplete
To obtain an error file with details on the errors encountered when initializing the subscribing table, execute the bcp command that appears below. Consult the BOL for more information on the bcp utility and its supported options. (Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253
bcp "TestDB"."dbo"."ReportType" in "C:\Testing\ReplData\unc\xxxxxxxxxxxxxxxx\20130227175358\xxxxxxxxb227380_514.bcp" -e "errorfile" -t"<x$3>" -r"<,@g>" -m10000 -S SqlSrvB -T -w (Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253

When Ran the BCP in Command Prompt

I got
Starting Copy.....
0 Rows Copied.

Bother are Sql Server 2012 servers
In my table one of the column dataype is timestamp and the schema structure is same on the both publisher and subscriber instances.

I hope in the BCP Files there is data but it not able to load data.

Please help me to resolve this issue.

I appreciate your help..

Thanks
Post #1424486
Posted Wednesday, February 27, 2013 7:21 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 1:13 AM
Points: 35,996, Visits: 30,290
It means that the data in the file or the structure of the data isn't what BCP was expecting. I suspect that the only way to find out is for you to post the actual BCP command you're using (be careful not to include the password) and attach the datafile. Of course, don't attach a file that has any sensitive or private information in it.

Since this appears to be for replicationn, the fix might be to drop and rebuild the replication.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

"Change is inevitable. Change for the better is not." -- 04 August 2013
(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1424527
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse