Using SQL Source Control projects in Azure Data Studio
mirving
Posts: 3 New member
Ref this article Using SQL Source Control projects in Azure Data Studio - Redgate Software (red-gate.com)
Using the method described here is a lot more painful than using the plugin in SSMS.
I often have several feature branches (4-5 atm) in which I have committed the changes.
The plugin in SSMS handles this fine. It noticed that it is committed in another branch and does't offer the change up for comparison.
Do you have a working method for working with ADS instead of SSMS that offers the same features that the plugin does?
I no problem with committing and syncing using built in functionality in ADS, but not that it doesn't check for already committed work.
Using the method described here is a lot more painful than using the plugin in SSMS.
I often have several feature branches (4-5 atm) in which I have committed the changes.
The plugin in SSMS handles this fine. It noticed that it is committed in another branch and does't offer the change up for comparison.
Do you have a working method for working with ADS instead of SSMS that offers the same features that the plugin does?
I no problem with committing and syncing using built in functionality in ADS, but not that it doesn't check for already committed work.
Tagged:
Answers
Presently the experimental method you're referencing in the article is the only way to use SQL Source Control in Azure Data Studio. Thank you very much for the feedback on it, it's incredibly useful for us to hear that.
I am interested in learning more about how you use feature branches in general, if you don't mind sharing:
- Are there times when you want to make a change in the database and commit this into more than one feature branch? If so, how do you currently go about this?
- If I run through a scenario like you're describing -- add a table in my database and commit to BranchA, then switch to BranchB, SQL Source control will list the table in the 'Get latest' tab and essentially suggest 'undoing' the change in the database. Do you tend to use that?
- Do you have other comments or feedback about your biggest pains or wishes for working with branches?
Cheers,Kendra
I guess one could work around that by cherry picking commits.
I so to say only use get latest when I see that someone else have worked on a part of the sql and commited it to master. Then I just pick the changes I need. I also so a get latest when I have cleaned up all my current commits I am working on to make sure my base is the same.
I really want to get the same features in ADS/VSCode that I have in SSMS regarding this component.
It doesn't need to be very graphical. It can use features already build into vscode like the commits and comparison etc. But handle the parts between db and script folder is something I really would like to be there.
Michael
Founder and Principal Consultant
SQL Solutions Group
Thanks for chiming in. We don't presently have this on the roadmap for SQL Source Control.
I would be very curious to know:
Thanks in advance,
Kendra
We're on a bit of an Azure Data Studio kick lately. A colleague and I are going to do our best to use it exclusively for the next 30 days, then do a webinar on our experience / SSMS vs. ADS. So I am about to become a heavy user. You probably know this but I seem to recall that SSC did a survey last year and it was at 15% or so?
Ultimately all that is required is some sort of lightweight fast way to just do the compare part form SQL Source Control. As you said above, ADS is already integrated with source control systems so committing files is easy. The missing piece is the comparison between the database and the scripts folder.
Both the CLI and the lightweight / fast standalone tool would be of interest. Or even an API so I could write the extension myself.
Thanks,
Randy
Founder and Principal Consultant
SQL Solutions Group