Red Gate forums :: View topic - Use "Add object existence checks" from commandline
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product support center
SQL Compare 10
SQL Compare 10 forum

Use "Add object existence checks" from commandline

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
stephenk



Joined: 24 Feb 2012
Posts: 3

PostPosted: Thu Mar 29, 2012 3:00 pm    Post subject: Use "Add object existence checks" from commandline Reply with quote

How do I use the "Add object existence checks" and "Use DROP and CREATE instead of ALTER" options from the command line
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6344
Location: Red Gate Software

PostPosted: Mon Apr 02, 2012 11:29 am    Post subject: Reply with quote

All of the options for the SQL Compare command line are noted here:
http://www.red-gate.com/supportcenter/Content/SQL_Compare/help/10.0/SC_CL_Command_Line_Options
It looks as if the documentation is out of date, though. I will get that looked into.

You would use /options:ObjectExistenceChecks,DropAndCreateInsteadOfAlter to accomplish what you want to do. For a shorter command-line, you could use the aliases for these options: oec and dacia respectively.
_________________
Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521
Back to top
View user's profile Send private message
stephenk



Joined: 24 Feb 2012
Posts: 3

PostPosted: Mon Apr 02, 2012 12:12 pm    Post subject: Reply with quote

Thanks.

The new options switches are also missing from SQLCompare.exe /? and SQLCompare.exe /verbose /? commandline help.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6344
Location: Red Gate Software

PostPosted: Mon Apr 02, 2012 2:25 pm    Post subject: Reply with quote

Odd, because I found thouse options the way I described... at least in version 10.1.
_________________
Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521
Back to top
View user's profile Send private message
stephenk



Joined: 24 Feb 2012
Posts: 3

PostPosted: Tue Apr 03, 2012 9:57 am    Post subject: re: error when using oec and dacia options Reply with quote

I tried the switches oec and dacia but I get the following error:

SQL Compare Command Line V10.0.0.143
============================
Copyright © Red Gate Software Ltd 1999-2011

Error: Invalid value for switch /options: oec. Please use SQLCompare.exe /? or SQLCompare.exe /verbose /? for more information.

I also tried the full switch names, ObjectExistenceChecks and DropAndCreateInsteadOfAlter, but got the same error.

note the version downloaded from web is 10.0.0.143, not 10.1
Back to top
View user's profile Send private message
David Atkinson



Joined: 05 Dec 2005
Posts: 1079

PostPosted: Tue Apr 03, 2012 10:23 am    Post subject: Reply with quote

If you use Check for Updates in the tool (Help menu), it will download v10.1. This version will appear on the main download soon.

Apologies for this.

David Atkinson
Red Gate
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group