Comments
Sort by recent activity
You can script this stuff out in SQL Compare or SQL Data Compare, but I would use Redgate SQL Source Control. This allows you to link your dev DB in SSMS to your VCS or just a plain old directory on your filesystem ("working folder") and to keep it up to date.
However, it won't give you the PRINT statements.
For deployment, if you already own SQL Toolbelt, why don't you use DLM Automation to handle deployments in the recommended and supported fashion? Unless I'm mistaken the upgrade scrpits it generates will have your PRINT statements. / comments
You can script this stuff out in SQL Compare or SQL Data Compare, but I would use Redgate SQL Source Control. This allows you to link your dev DB in SSMS to your VCS or just a plain old directory o...
Sorry, I've not come across the log in issue before. I can't imagine it's intended that you cannot activate on machines without internet. Hopefully someone from Redgate can advise. / comments
Sorry, I've not come across the log in issue before. I can't imagine it's intended that you cannot activate on machines without internet. Hopefully someone from Redgate can advise.
https://www.red-gate.com/webactivation/activate / comments
https://www.red-gate.com/webactivation/activate
Also, Schema Compare is your friend. And the more progress you can make on the human stuff above, the easier that merge will be. / comments
Also, Schema Compare is your friend. And the more progress you can make on the human stuff above, the easier that merge will be.
This is all a question about source control branching. You should manage all the source code for all the different branches in source control.
There are of course plenty of different branching strategies with different pros and cons and plenty of people who feel strongly about one way or the other being the best and I don't fancy getting drawn into one of those debates. Ideally, however, your branching strategy should match your reality.
I wrote a bit more detail on that point here: http://workingwithdevs.com/branching-reality/
Of course, that approach will have limitations based on the tooling you choose. Git, for example, is far better able to cope with complicated branching strategies than TFSVC or SVN, but its also a bit of a learning curve and complicated branching strategies can get pretty confusing pretty quickly. It's not a perfect science despite what you may read.
However, once you have fixed the source control branching issue you should be able to deploy your code based on the source code, rather than trying to sift through a bunch of work in progress and copy specific changes from one database to another.
I wrote about one POC creating an Oracle database deployment pipeline based on source control here: http://workingwithdevs.com/continuous-delivery-oracle-databases-bamboo-redgate-1/ / comments
This is all a question about source control branching. You should manage all the source code for all the different branches in source control.
There are of course plenty of different branching stra...
Worth clarifying if it is possible to move to a Git repo in TFS? (TFS supports both TFSVC and Git repos now.) If TFSVC then you will need to limit the number of branches quite tightly for plain technical/complexity/tooling reasons.
So the advice here is to simplify your branching strategy but the necessary consequence is that you should simplify your reality to match. If your reality and your branches don't match the slipper won't fit, people will break the rules and it will be enormously painful.
So how do you do that? The simple old truths:
- Use source control and ensure it is the sole source of truth.
- Ensure all teams (Dev/DBA/test etc) are aligned.
- Limit work in progress.
- Release small batches regularly.
- Minimise the amount of concurrent epics that different teams are working on against the same codebase.
Note these are mostly human/project management changes, not technical ones. Unfortunately that will probably mean you need to push back on project managers etc, which is often difficult. / comments
Worth clarifying if it is possible to move to a Git repo in TFS? (TFS supports both TFSVC and Git repos now.) If TFSVC then you will need to limit the number of branches quite tightly for plain tec...
There was talk of doing clever grouping in the UI if the schemas matched exactly but I don't think it ever got implemented. / comments
There was talk of doing clever grouping in the UI if the schemas matched exactly but I don't think it ever got implemented.
I wouldn't disagree. :-) / comments
I wouldn't disagree. :-)
Well yes - I would expect them to be the same too - but SQL Compare is throwing a wobbly.
It's just worth being aware that the post-deploy schema check that SQL Compare is performing (and finding differences) is not with the NuGet, it's with the source directory in the DlmDatabaseRelease. I would take a look there to see if it finds something unexpected.
That may reveal in interesting clue and it may also help us to work out whether the problem is running SQL Compare or the creation of the DlmDatabaseRelease. / comments
Well yes - I would expect them to be the same too - but SQL Compare is throwing a wobbly.
It's just worth being aware that the post-deploy schema check that SQL Compare is performing (and finding d...
It is comparing the target DB to the source directory in the DlmDatabaseRelease object, not the original NuGet package.
Try doing that diff and see what shows up. / comments
It is comparing the target DB to the source directory in the DlmDatabaseRelease object, not the original NuGet package.
Try doing that diff and see what shows up.