Where clause filter gets scripted

Compares and synchronizes SQL database content.

Where clause filter gets scripted

Postby msegura » Sat Jun 04, 2011 6:48 pm

Hi everyone. When I use the where clause filters to do my data comparison, they also get included into the scripting which inherently creates an issue when I try to run an update statement. Does anyone know how to exclude it in the actual scripting? It seems very strange how this was designed. I do set the "Use the same where clause for both data sources" option in the where filter which makes sense but I don't mean for it to be literally used in the scripting. Any help is appreciated.
Posts: 1
Joined: Sat Jun 04, 2011 6:38 pm

Where clause filter gets scripted

Postby Sian.Williams » Mon Jun 06, 2011 12:19 pm

Thanks for your question.

SQL Data Compare 8 includes the WHERE clause in the update scripts. This causes issues if it selects from another table and that table hasn't been updated yet. It's not easy to tell when this is going to happen.

SQL Data Compare 9 doesn't seem to have this issue, it may be worth upgrading/evaluating it if you haven't done so already.

I hope this helps.
Siân Williams
Red Gate Software
Tel: 0800 169 7433
Posts: 32
Joined: Thu Aug 26, 2010 7:59 pm

Return to SQL Data Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests