Quantcast
Channel: SQLServerCentral » SQL Server 2005 » SS2K5 Replication » Latest topics
Viewing all articles
Browse latest Browse all 302

Snapshot Replication Error

$
0
0
Hey guys,So I have setup replication between our source production database to replicate to our reporting database so we are not hitting our production database for reporting...I set this up 2 months ago and everything was running fine...Until about 5 days ago, it started failing every night, when I go to look at the job history and see the big red X and look at the error, it gives me this:MessageExecuted as user: TRH\mssql. String or binary data would be truncated. [SQLSTATE 22001] (Error 8152). The step failed.For some reason I was under the impression it was failing during the distribution step of replication...I know what that error means but I started digging...This was yesterday - I created a backup of the source, and restored it onto reporting...Was going to see if that helped the issue...I check this morning and nope same failure, same message...So I have this redgate tool SQL Compare...It compares the schema's of the two databases! Once it finished, it showed no differences and 22723 identical objects!When looking back at the error, the light bulb came on and was like this is failing on the snapshot portion of replication! Now it makes no sense to me why I would get that error when trying to create a snapshot??? Its not pushing data anywhere so I dont know why this error would be thrown...Looking at the job history and expanding down on the today's date with big red X, I noticed some of the lines had a blue curved arrow and some of the lines have a the successful green play button, but looking at the blue curved arrow line, I noticed this:2013-07-23 07:17:43.55 [8%] The replication agent had encountered an exception.2013-07-23 07:17:43.55 Source: Replication2013-07-23 07:17:43.55 Exception Type: Microsoft.SqlServer.Replication.NativeSqlConnectionException2013-07-23 07:17:43.55 Exception Message: Failed to read column data2013-07-23 07:17:43.55 Message Code: 02013-07-23 07:17:43.55 2013-07-23 07:17:43.55 [8%] The replication agent had encountered an exception.2013-07-23 07:17:43.55 Source: Replication2013-07-23 07:17:43.55 Exception Type: Microsoft.SqlServer.Replication.NativeSqlConnectionException2013-07-23 07:17:43.55 Exception Message: Failed to read column data2013-07-23 07:17:43.55 Message Code: 02013-07-23 07:17:43.55Now let me say this again, there was not a red X on this line, just the blue curved arrow! and the line above it is a successful green one...Then it 2 lines above it is when I see the red X errors with the String or Binary data would be truncated... Details of the Snapshot Replication:Source to ReportingA bunch of articles - like at least 10,000Security Settings - Run under the SQL Server Agent service account , Connect to the publisher by impersonating the process accountRuns every morning around 3 amCan anyone give me any insight as to what might be going on here?

Viewing all articles
Browse latest Browse all 302

Trending Articles