Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The process could not bulk copy into table '"dbo"."


The process could not bulk copy into table '"dbo"."

Author
Message
Sharon Kumar
Sharon Kumar
Valued Member
Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)

Group: General Forum Members
Points: 55 Visits: 762
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
Jeff Moden
Jeff Moden
SSC-Forever
SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)

Group: General Forum Members
Points: 45245 Visits: 39928
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.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Wink

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search