Comments
Sort by recent activity
That is not how SQL Source Control is designed to work. It sounds like what you want is DLM Dashboard? www.red-gate.com/products/dlm/dlm-dashboard Technically, there are things you can do. For example, you could write a script to run SQL Compare to sync a Dev database with a scripts folder and check those scripts into source control. Then you could run that script on a schedule or following a DDL trigger. However, I've not yet seen a scenario where that's been a wise choice. / comments
That is not how SQL Source Control is designed to work. It sounds like what you want is DLM Dashboard?www.red-gate.com/products/dlm/dlm-dashboardTechnically, there are things you can do. For exampl...
No probs. Good luck and happy deployments! / comments
No probs. Good luck and happy deployments!
+1 :-) / comments
+1 :-)
However, to answer your question more directly. Consider using a "release branch". For example, in Vincent's "GitFlow" model feature 1 and 2 would have been merged to develop. Then a release branch could be created and the testers would work on the release branch until they are happy to sign it off. Then they would merge it to master and deploy to production. Of course, you might prefer to develop your own strategy that does something similar. Or not. / comments
However, to answer your question more directly. Consider using a "release branch".For example, in Vincent's "GitFlow" model feature 1 and 2 would have been merged to develop. Then a release branch ...
The folks at Redgate use GitHub. Microsoft use Git in Azure DevOps Services. https://docs.microsoft.com/en-us/azure/devops/learn/devops-at-microsoft/use-git-microsoft The Redgate tools will work fine with Git hosted in GitHub, Bitbucket, Azure DevOps Services (hosted) or Azure DevOps Server (TFS / on prem). The de facto source control technology these days is Git and it pays to use the most widely supported and understood tools. / comments
The folks at Redgate use GitHub. Microsoft use Git in Azure DevOps Services.https://docs.microsoft.com/en-us/azure/devops/learn/devops-at-microsoft/use-git-microsoftThe Redgate tools will work fine...
Sounds like a sensible decision. Using pre/post should mean the "deploy to all workstations" step is just a simple "get latest"/"apply changes". / comments
Sounds like a sensible decision.Using pre/post should mean the "deploy to all workstations" step is just a simple "get latest"/"apply changes".
Fair point, i suppose my instructions for option 1 should have read: UNLINK/RE-LINK STATIC DATA 1. Unlink static data 2. Deploy new column as NULLABLE all the way up to prod ****AND TO EVERY DEV WORKSTATION**** 3. INSERT static data manually all the way to prod ****AND TO EVERY DEV WORKSTATION****, or relink static data to source control and then deploy all the way to prod ****AND TO EVERY DEV WORKSTATION**** 3. Add NOT NULL constraint, commit to source control and deploy all the way to PROD ****AND TO EVERY DEV WORKSTATION**** 4. Re-link static data (if not already done so) In retrospect, perhaps the following is a better solution all round: PRE/POST DEPLOYMENT SCRIPTS (v2) 1. Unlink static data table 2. Add a pre deploy to: a. Check if target table is in the before state and that it already holds data b. If so, create a new table called OriginalTableName_Temp c. Copy all data to new temp table d. Truncate original table 3. Add a post-deploy to: a. check if OriginalTableName_Temp exists b. if so, copy all data, including new default data for new NOT NULL col into original table (by the time this script runs, the new col should exist). c. delete OriginalTableName_Temp 4. Commit your new pre- and post-deploy script, along with your new NOT NULL column as a single commit. 5. Deploy this change to all environments, including prod and all dev workstations 6. Re-link static data * For now, you probably need to manually patch all the other dev workstations. Sorry I forgot to include dev workstations in my original answer. Forgive me, I'm a only fallible human. :-) / comments
Fair point, i suppose my instructions for option 1 should have read:UNLINK/RE-LINK STATIC DATA1. Unlink static data2. Deploy new column as NULLABLE all the way up to prod ****AND TO EVERY DEV WORKS...