Use Drop and Create Instead Of Alter Option did not work with source control
chuck
Posts: 29 Bronze 2
Hi,
I am using sql comapre to generate scripts, I am using source control revision as data source.
I configure the option "use drop and create instead of alter".
However, the scripts genereted still keep alter procedure.
I have tried compare two databases as datasource,the option works fine.
Is this a bug only for source control?
The version of sql compare is 13.0.5.5219
The version of sql source control is 5.7.6.6321
I am using sql comapre to generate scripts, I am using source control revision as data source.
I configure the option "use drop and create instead of alter".
However, the scripts genereted still keep alter procedure.
I have tried compare two databases as datasource,the option works fine.
Is this a bug only for source control?
The version of sql compare is 13.0.5.5219
The version of sql source control is 5.7.6.6321
Tagged:
Answers
But when I use check for updates, the program can not found the newer version.
The latest version of sql source control is6.0.2.6908 - October 17th, 2017 ,but the program still can not check this update
https://documentation.red-gate.com/display/SC13/Turning+on+Frequent+Updates
Redgate Software
Hi,
I want to know if you have fixed this problem, or you just designed it like this.(can not use drop and create when use git as source for sql compare)
SQL Source Control use the same compare engine as SQL Compare. It should work in the same way no matter the source is from live database or source control. Is that possible to share the deployment script?
Tianjiao Li | Redgate Software
Have you visited our Help Center?
This is the deploy script I get from sql compare, and I am pretty sure that I have checked “use drop and create instead of alter”.
However, the options did not work.
You can test it by yourself to confirm it.
It's very simple to reproduce it, just create a new database,and add a stored procedure to database and commit it.
Then modify it,and commit it again.
Then you can use sql compare to generate the script by compare two commits in git repository.
Thanks and I've reproduced the issue. I'll update you shortly.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
We've logged it as a bug (SC-9791) and will update you when there is a fix!
Sorry for the inconvenience caused.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Thanks for your patience with this issue.
Unfortunately the development team hasn't been able to prioritise this work. Given the size of the backlog of higher-priority items, it doesn't look like it's something we will fix in the foreseeable future.
However we still have it logged as SC-9791 in our internal bug tracking system and we'll reassess it again in the future. Please keep an eye on the release note!
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Understand, thanks.
13.3.6.6375 - June 4th 2018