When I'm adding one procedure article to the Publication the I get this error:

The text data type cannot be selected as DISTINCT because it is not comparable

the proc is a simple

select distinct field1, field2, fieldn from tablex where id = @param1

The database is on compatibility level 80.

The source server is SQL 2008 R2.

Any help is appreciated. Thanks, Gabriel GuimarĂ£es

link|improve this question

78% accept rate
feedback

1 Answer

up vote 1 down vote accepted

I solved it, due to the sql 2000 compatibility (80) of the database, I've set an option on the replication to: Convert MAX data types to NText and IMAGE.

so by doing a convert to varchar(max) it was solved.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.