Comments
Sort by recent activity
Great news. If you had any sensitive data in prod you might want to consider using SQL Data Masker or something similar to ensure this data is not being used in dev. (Especially if you have any PII data regarding EU citizens. #GDPR) https://www.red-gate.com/products/dba/data-masker/index (Of course, if you do have such data in dev I strongly recommend that you don't admit that fact in a public forum.) / comments
Great news.If you had any sensitive data in prod you might want to consider using SQL Data Masker or something similar to ensure this data is not being used in dev. (Especially if you have any PII ...
In theory you should be using source control in dev, not production. You should be deploying to production from source control, not retrospectively commiting changes to source control after they have been applied in prod. If what you are looking for is an audit log of changes you should look at DLM Dashboard instead.
With regards moving your source control to the pre-prod DB, the simple answer is to use something like SQL Compare to sync yp the schemas and then unlink prod and link pre-prod.
But as I mentioned, you really you should be doing that all the way down to dev and then using source code as the source of truth for all deployments to your test/pre-prod/prod dbs. / comments
In theory you should be using source control in dev, not production. You should be deploying to production from source control, not retrospectively commiting changes to source control after they ha...
You shouldn't need to write a migration scripts. DLM Automation will do it for you.
Migration scripts are for data that are not included in your static data tables. For example if you decide to split full name into fName and lName. / comments
You shouldn't need to write a migration scripts. DLM Automation will do it for you.
Migration scripts are for data that are not included in your static data tables. For example if you decide to spl...
Maybe this is a silly question, but have you made any changes or are the source package and target database already in an identical state? / comments
Maybe this is a silly question, but have you made any changes or are the source package and target database already in an identical state?
How much data in your lookup tables? If roughly 1,000 rows or less try the Static Data option. Obviously you will need to ensure all dependencies are also in source control. If an order of magnitude more than that it's harder. You could try migration scripts but they are complicated and it's easy to get yourself into a pickle. / comments
How much data in your lookup tables?If roughly 1,000 rows or less try the Static Data option. Obviously you will need to ensure all dependencies are also in source control.If an order of magnitude ...
If you need different static data in dev and prod you could try something like this: https://www.red-gate.com/blog/database-development/customer-specific-database-deployments Other options: Use a post deploy script that calls a scproc. Sproc should be environment aware. Sproc should do something like: IF (DEV) {Make static data looklike this} IF (PROD) {Make static data look like that} This way it's all in source control - but if your static data tables are big that sproc will be massive. / comments
If you need different static data in dev and prod you could try something like this:https://www.red-gate.com/blog/database-development/customer-specific-database-deploymentsOther options:Use a post...
Or, if the static data is massive, don't use source control to solve the problem. Do it some other way. Source control doesn't like massive files. (Although if poss source control is best.) / comments
Or, if the static data is massive, don't use source control to solve the problem. Do it some other way. Source control doesn't like massive files.(Although if poss source control is best.)
Do you mean a table in the SQL Server master database? If so I don't have a good suggestion for you within Redgate SQL Source Control. You will need to manage this some other way.
Do you mean you want to insert data into a reference table or lookup table in your source controlled database? If so, assuming the table has less than about 1000 rows use the 'static data' feature: https://documentation.red-gate.com/soc6/common-tasks/link-static-data
If it is a bigger table either use a 'migration script': https://documentation.red-gate.com/soc6/common-tasks/working-with-migration-scripts
Or, if this is a regular task, consider using ReadyRoll or some other process instead. SQL Source Control 'migration scripts' work well for very occasional changes on small-ish databases but they don't scale very well to bigger databases and frequent use. / comments
Do you mean a table in the SQL Server master database? If so I don't have a good suggestion for you within Redgate SQL Source Control. You will need to manage this some other way.
Do you mean you w...
Given that you are using the shared model that's probably the best you can do.
However, I would highly recommend that you ditch the shared model and move to the dedicated model. Trying to use a shared development database with a distributed source control system is simply a contradiction. You will spend more time fighting the tools than benefiting from them.
I appreciate that decision might be out of your control, but perhaps sharing this blog post with whoever has influence over the decision might be a good starting point: http://workingwithdevs.com/shared-vs-dedicated/ / comments
Given that you are using the shared model that's probably the best you can do.
However, I would highly recommend that you ditch the shared model and move to the dedicated model. Trying to use a sha...
One thing you could do is select the dedicated option even though you are using shared. For various complicated technical reasons it will probably work fine. In order to explain that it might be worth actually scheduling a skype call to talk through it.
However, it's ugly and smelly and you should just move to the dedicated model. / comments
One thing you could do is select the dedicated option even though you are using shared. For various complicated technical reasons it will probably work fine. In order to explain that it might be wo...