all groups > sql server replication > july 2004 >
You're in the

sql server replication

group:

trans repl failing with error 257 from dist agent


trans repl failing with error 257 from dist agent spork_boy
7/30/2004 2:03:01 PM
sql server replication:
Hi I am trying to set up a transactional replication scheme with immeadiate and queued updating.. Everything is working fine except for one table when i include it as an article I get the following error from the Distribution Agent:

Implicit conversion from data type text to nvarchar is not allowed. Use the CONVERT function to run this query.
(Source: DS-FLASH (Data source); Error number: 257)
---------------------------------------------------------------------------------------------------------------
Implicit conversion from data type text to nvarchar is not allowed. Use the CONVERT function to run this query.
(Source: DS-FLASH (Data source); Error number: 257)
---------------------------------------------------------------------------------------------------------------

The last command is:

if (@@microsoftversion >= 0x080002C0)
begin exec sp_addsynctriggers
N't_sf_adhoc_CreditScoreResultsData',
N'null',
N'DS-LINC',
N'odin',
N'odin',
N'sp_MSsync_ins_t_sf_adhoc_CreditScoreResultsData_1',
N'sp_MSsync_upd_t_sf_adhoc_CreditScoreResultsData_1',
N'sp_MSsync_del_t_sf_adhoc_CreditScoreResultsData_1',
N'sp_MScft_odin_t_sf_adhoc_CreditScoreResultsData',
N'dbo',
N'null',
N'null',
N'null',
0x01000000000000000000000000000000000000000000000000000000000000,
0,1,
N'DS-LINC',
2
end
Transaction sequence number and command ID of last execution batch are 0x00007CAD00000FC2009800000001 and 881.

It only happens with this one table. There is nothing special about the table, just a bunch of varchar fields with 1 foreign key reference. It doesn't use any reserved words or non-conforming field names.

Any help or clues would be greatly appreaciated.
Re: trans repl failing with error 257 from dist agent spork_boy
7/31/2004 8:23:02 AM
Thank you Paul for the response,

It is not a nosync initialization problem. The table was not on the subscriber. This happed on the distribution of the initial snapshot. The collations are also identical on both databases (default collation). Both servers are running sql 2000 sp3a. All of the other tables that preceed it work fine. When I run the sp_addsynctriggers as listed below in the last commad, I get the cannot implicitly convert text error.

Thank you.

[quoted text, click to view]
Re: trans repl failing with error 257 from dist agent spork_boy
7/31/2004 12:19:02 PM
I can do it on Monday, I can't get access to my network this weekend.

Thank you again.

[quoted text, click to view]
Re: trans repl failing with error 257 from dist agent Paul Ibison
7/31/2004 3:11:00 PM
Is this a nosync initialization - do you already have the table on the
subscriber? If so, are the datatypes and collations identical?

If not a nosync initialization, is the collation on the subscriber's
database the same as that defined on the columns on the published article -
if not then in the article properties select to include the collation.

HTH,

Paul Ibison

Re: trans repl failing with error 257 from dist agent Paul Ibison
7/31/2004 4:45:54 PM
Please can you script out the offending article, along with all constraints
etc ans I'll take a look.
Regards,
Paul Ibison

Re: trans repl failing with error 257 from dist agent Hilary Cotter
8/2/2004 8:37:14 AM
updateable subscriptions are unable to replicate the text and image columns.
Use merge replication for text and image or do not replicate these columns.

--
Hilary Cotter
Looking for a book on SQL Server replication?
http://www.nwsu.com/0974973602.html


[quoted text, click to view]

AddThis Social Bookmark Button