I have an issue with @filter_clause parameter of sp_addarticle procedure. I try to set a very long filter value (about 10000 symbols), and then i have an error:
Msg 102, Level 15, State 1: Incorrect syntax near 'O'.
Msg 21745, Level 16, State 1, Procedure sp_MSrepl_articleview, Line 272
Cannot generate a filter view or procedure. Verify that the value specified for the @filter_clause parameter of sp_addarticle can be added to the WHERE clause of a SELECT statement to produce a valid query.
First message are different when i change filter value and it looks like @filter_clause parameter has an restrinction on the length.
Can i avoid this error?
Additionaly this procedure has parameter - @filter, and i think that error occurs when sp_addarticle trying to create filter procedure.
Can i create filter procedure manually and set it to @filter parameter, is this the same as setting @filter_clause parameter?