Replication - skipping sp_MS[del|upd|ins] triggers in 6.2?
mbourgon
Posts: 32 Bronze 2
For some reason the "Ignore replication triggers" doesn't seem to work. Even though I have it selected, I still get a list of all the sp_MS triggers. Is there some sort of trick to this? Either on or off, I wind up with the same number of changes. This is in 6.2.0.271 professional edition.
Thanks.
Thanks.
Comments
Redgate Software
Please add it to whatever request list y'all have.
Thanks,
Michael
Redgate Software
Can I ask whether where in the SQL Compare process would you like to specify such regular expressions? Can you give me one or more specific examples of the regular expression(s) that you would like to exclude from the object list?
David Atkinson
Product Manager
Red Gate Software
Product Manager
Redgate Software
Well, it's largely related to replication at the moment, in that even with the replication triggers option ticked, my comparison still flags things like the replication stored procedures (sp_sel_#######, etc), and views (msmerge_contents_{TABLE}). Clearly you could add these as an explicit replication setting, but it strikes me it would be more flexible to allow the user to specify his own list of filters.
As another example, we have one application which is modular. Some sites will not use certain modules, and consequently don't need us to sync the relevant objects. We have a naming convention to determine which items belong to which module, and a regexp filter would allow us to set up a project specific to each site.
As to how it would be set up, perhaps a section for each type of object containing a list of filters for that type of object. You could then elect to ignore any stored procedure that matches a given filter. Does that make sense?
Kev
http://www.red-gate.com/MessageBoard/vi ... php?t=8303
Please let us know if this meets your expectations.
Kind regards,
David Atkinson
Product Manager
Red Gate Software
Product Manager
Redgate Software
I've taken a look at it and it certainly addresses our needs. I'll continue playing and see if I encounter any problems, but it looks good.
One small thing I noticed is that I can no longer double click on the compare direction arrow to reverse the syncronisation. Is this just missing from the beta, or has it gone for good, or has the functionallity just moved elsewhere?
Kev
With regards to replication, I'm curious about how you're dealing with comparing against tables which have additional MSmerge rowguid replication columns.
David Atkinson
Red Gate Software
Product Manager
Redgate Software
Nothing very exciting, I'm afraid. We have a guid column with the rowguid attribute set in all of our tables on both the development servers and the replicated production servers.
Kev
Also, are there any problems associated with having these additional fields on your development servers as well?
And how were you dealing with the other replication objects beforehand? Did you create these on the dev environment as well, or did you simply ignore them from SQL Compare's results set?
Kind regards,
David Atkinson
Red Gate Software
Product Manager
Redgate Software
Any other replication objects we are settin up filters for. These we specifically don't have on the dev environment. In the past i've needed to manully uncheck them before doing a sync, which isn't as bad as it sounds as they occur for the most part in contiguous chunks in the output. Having them ignored by a filter is one less thing to get wrong though!!
Kev
If you have any other issues with SQL Compare, whether they be replication-related or otherwise, please let us know!
Kind regards,
David Atkinson
Red Gate Software
Product Manager
Redgate Software