Red Gate forums :: View topic - Command Line Switch AddDatabaseUseStatement Not Working
Return to www.red-gate.com RSS Feed Available

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

Command Line Switch AddDatabaseUseStatement Not Working

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



Joined: 28 Sep 2012
Posts: 20

PostPosted: Thu Aug 01, 2013 7:12 pm    Post subject: Command Line Switch AddDatabaseUseStatement Not Working Reply with quote

I've added this to the command line, but my script doesn't have the USE statement. Here's a snippet from the powershell script that executes my comparison:

sql_compare /Database1:FACTSInfo /Version1:Head /Database2:FACTSInfo /Server1:$sqlServer /Server2:$sqlServer /filter:$filterfile /options:IgnoreWhiteSpace,IgnoreFillFactor,AddDatabaseUseStatement /sync /scriptfile:deploy.sql /force

I'm comparing from SQL Source Control to a newly-restored copy of the database, which is why the same database name is used.

Any ideas?

Thanks,
Craig Eddy
Back to top
View user's profile Send private message
Manfred.Castro



Joined: 23 Apr 2012
Posts: 209

PostPosted: Mon Aug 05, 2013 6:11 pm    Post subject: Reply with quote

Thank you for reporting this.
I was able to reproduce the behavior you are describing and have logged a bug in our system under the internal reference number of SC-6479.
Sorry for any inconvenience this may have caused.
_________________
Manfred Castro
Product Support
Red Gate Software
Back to top
View user's profile Send private message
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