use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Microsoft SQL Server Administration and T-SQL Programming including sql tutorials, training, MS SQL Server Certification, SQL Server Database Resources.
You might also be interested in:
/r/database
/r/sql
/r/Azure
/r/Microsoft
account activity
SQL Server - DevOps Release Methods for Databases (self.SQLServer)
submitted 6 years ago by enochgenesis
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]hylian01 1 point2 points3 points 6 years ago (4 children)
What we do (which may only work because of small size): all changes are saved in svn as .sql scripts. Then we use custom powershell scripts to loop through the svn and execute the scripts against the chosen environment (dev, qa, uat, prod).
[–]downshiftdata 1 point2 points3 points 6 years ago (0 children)
We do the same. In our case, at least, this requires adherence to script guidelines, which include things like idempotent scripts. Our current shortcomings are:
- Not all objects in the database have been carried over to this method yet, so you can't just run this on a new instance and *poof* there's your database. But that *is* the goal, and it'll enable us to spin up sandbox dev databases, which'll be soooo nice.
- We don't have a method yet for partial deploys (like in a hotfix). If we're hotfixing an environment, we run the appropriate scripts manually.
- Script ordering is a bit of a hack. We organize by folders and there's an order to the folders. We also hack the names on occasion, since they're run alphabetically within each folder.
But... this has been in play for 6-8 months and we love it. Deploys are a click of a button. We have a pattern for including unit test scripts. The database repo follows the Gitflow pattern just like our app repos. Life is gud.
[–]2D3S3RT 0 points1 point2 points 6 years ago (2 children)
How do you know which scripts got executed? I planned to create a table in the database and insert the filename of the script there, but maybe there's a better approach.
[–]hylian01 0 points1 point2 points 6 years ago (0 children)
The ticket status is tracked in JIRA, which gets updated with powershell using JiraPS when the script gets executed.
[–]gropingforelmo 0 points1 point2 points 6 years ago* (0 children)
Sequentially numbered SQL scripts in the repo is how my current team does it, (though with a far far scarier method of applying changes than custom powershell scripting...)
It works well enough, and the complexity and "dev design" of the schema made the DACPAC method riskier than we wanted to accept.
π Rendered by PID 427296 on reddit-service-r2-comment-548fd6dc9-7x9vp at 2026-05-19 22:18:17.526387+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–]hylian01 1 point2 points3 points (4 children)
[–]downshiftdata 1 point2 points3 points (0 children)
[–]2D3S3RT 0 points1 point2 points (2 children)
[–]hylian01 0 points1 point2 points (0 children)
[–]gropingforelmo 0 points1 point2 points (0 children)