South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
How many is a few?
Create a ssis package and run from commandline if you want and it's complex.
Hmm this needs to be able to run against Azure as well...
[)roi(];19221234 said:If you're adverse to building your own; then maybe have look at something like RedGate ReadyRoll or ApexSQL Scripting
No, each software release requires one or more DB version updates. Each update usually have several script files that need to be run.Is it a once-off run?
I currently do this, but I find it a PITA. Doesn't make sense to have to go to cmdline to run a series of scripts if I could have done it straight out of the DB tool...You could do this: https://msdn.microsoft.com/en-us/library/ms170572.aspx
I currently do this, but I find it a PITA. Doesn't make sense to have to go to cmdline to run a series of scripts if I could have done it straight out of the DB tool...
Don't know why I have to leave the environment to Powershell or cmdline to deploy a script. Why not in the DB tool environment?
So you have all the scripts but you need to deploy/execute them on different environments? I honestly don't think SSMS should be at fault here, basic release management solves these type of things, unless I'm misunderstanding what the problem is.
Well, to date, I have used IBExpert (IBE) to manage Firebird databases locally (dev & test) and remotely (clients). When developing, I write the scripts in IBE because it has intellisense for the DB. Exactly like I do in SSMS/VS. As a rule, I create a script file per table/view/proc to keep things organised. These script files go into version control. Then I create a top-level migration script that imports and runs the other individual scripts in correct sequence. Right from IBE. E.g.What would your ideal solution to this issue be then?
.So you have all the scripts but you need to deploy/execute them on different environments? I honestly don't think SSMS should be at fault here, basic release management solves these type of things, unless I'm misunderstanding what the problem is.
Not sure how @@trancount solves the problem?Looks like an interesting thread but i`m not sure I understand the problem and the suggested solutions?
Why not use @@trancount in ssms?
Not sure what rm tools are. Pls elaborateAs above. When you deploy your code rm tools should sort all that out.
.
See above. My point is that SSMS cannot run a top-level script that includes all the individual scripts for a release. At least that is what I understand it cannot do.
Not sure what rm tools are. Pls elaborate
Release management tools.
SSMS can do what you are mentioning? Please try it, I'm sure I've done something like that before.
Alternatively, SQL Server database project would do all of what you want. Painful to use but creates a semi-decent release script to deploy with.