Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Replication Error

Author  Topic 

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2008-07-02 : 16:50:28
Hi Experts,

I have configured transaction replication beween 2 servers with updatble subscription in SQL Server 2005 with SP2. Everything goes fine. Except when the snapshot is getting applied to the subscriber.


I get error when the snapshot is getting applied to the second server.

Error messages:

1) The process could not bulk copy into table '"dbo"."AllDocStreams"'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037

2) An existing connection was forcibly closed by the remote host.
One or more BLOB columns could not be sent to the server, attempt to recover from the problem failed.

3) Communication link failure (Source: MSSQLServer, Error number: 08S01)
Get help: http://help/08S01

4) Unspecified error
Failed to send batch after max errors


Any help or recommendation is appreciated.


Thanks in advance
Sachin

Don't sit back because of failure. It will come back to check if you still available. -- Binu

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-02 : 17:03:21
Why are you applying snapshot in Subscriber? It should be applied in Publisher.
Go to Top of Page

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2008-07-03 : 06:47:47
Snapshot is applied on subscriber when you choose to apply snapshot immediately. Basically what applying the snapshot means is that all objects which are part of your publication are (re)created in the subscriber database and when the data is bcp'd into the tables.


And when this is going the BCP fails for one table :(.

regards
Sachin

Don't sit back because of failure. It will come back to check if you still available. -- Binu
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-04 : 20:18:48
How big is the table?
Go to Top of Page

maninder
Posting Yak Master

100 Posts

Posted - 2008-07-05 : 00:18:59
check the order of columns while bcp also check to see you have copy the contents of BCP into a new table, truncate the existing table and copy the contents from this new table to the original table and check to see if the ERROR persists..
There might be something wrong with the DATA...

Maninder
SQL server Architect / Admin (DEV&PROD)
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-05 : 23:04:09
The bcp here is started by replication as part of snapshot.
Go to Top of Page

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2008-07-07 : 03:18:25
Hi Maninder /rmiao,

I checked the order of the tables and they are same in both publisher and subscriber. The table contains a column with image datatype. I think that can be a problem. MSDN says that to replicate LOB data, using "Distribution Profile for OLEDB streaming" profile is optimized. I even tried that, but no luck.

Please help.

Thanks
sachin

Don't sit back because of failure. It will come back to check if you still available. -- Binu
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-07 : 23:23:39
How big is that table? Has enough disk space to hold data files for bcp?
Go to Top of Page

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2008-07-08 : 02:44:10
The table is of 2GB and enough space on disk to hold the BCP file.

Don't sit back because of failure. It will come back to check if you still available. -- Binu
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-09 : 23:14:05
Snapshot 2gb table may have problem if link speed between servers is slow.
Go to Top of Page
   

- Advertisement -