redgate

Database Change Management - Setup for Initial Create Scripts, Subsequent Migration Scripts

*爱你&永不变心* 提交于 2020-01-12 20:36:52
问题 I've got a database change management workflow in place. It's based on SQL scripts (so, it's not a managed code-based solution). The basic setup looks like this: Initial/ Generate Initial Schema.sql Generate Initial Required Data.sql Generate Initial Test Data.sql Migration 0001_MigrationScriptForChangeOne.sql 0002_MigrationScriptForChangeTwo.sql ... The process to spin up a database is to then run all the Initlal scripts, and then run the sequential Migration scripts. A tool takes case of

RedGate Reflector to recover source code from .net assembly

点点圈 提交于 2019-12-31 03:43:09
问题 Quick question. Can I recover a lost .cs file using RedGate Reflector ? My assembly is a debug version 回答1: If you open .NET assembly in Reflector, you should be able to switch which language Reflector uses to display the code e.g. IL , VB.NET , C# . There is a dropdown list on the UI menu bar with this selection of languages. As long as you have all the required external libraries and references, you should be able to copy the C# code form Reflector and try to rebuild it. 回答2: To make it a

merging two databases

倖福魔咒の 提交于 2019-12-25 05:24:38
问题 I have two distinct mssql databases with identical schemas but different data on one system. I want to merge the data between the two databases by adding the data from one into the other. I tried to use Redgate Data Compare but couldn't find any instructions how to do it. Are there any tools (or databases that have built-in tools) or instructions to make this job fairly simple? 回答1: xSQL Software has developed a set of tools for this type of database operations. You can use xSQL Data Compare.

How do I rename a tSQLt test class?

∥☆過路亽.° 提交于 2019-12-18 17:05:18
问题 I'm developing a database using the Red Gate SQL Developer tools. SQL Test, the SSMS add-in that runs tSQLt tests, lacks a way to rename test classes. I have a test called [BackendLayerCustomerAdministrationTests].[test uspMaintainCustomerPermissions throws error when PermissionValue is missing or empty] . The name is so long it breaks Deployment Manager. 2013-12-05 18:48:40 +00:00 ERROR The specified path, file name, or both are too long. The fully qualified file name must be less than 260

What are the Finalizer Queue and Control+ThreadMethodEntry?

ε祈祈猫儿з 提交于 2019-12-18 04:52:44
问题 I have a WindowsForms app that appears to leak memory, so I used Redgate's ANTS Memory Profiler to look at the objects I suspect and find that they are only held by objects already on the Finalizer Queue . Great, exactly what is a the Finalizer Queue? Can you point me to the best definition? Can you share any anecdotal advice? Also, all the root GC objects on the Finalizer Queue are instances of System.Windows.Forms.Control+ThreadMethodEntry objects named "caller". I see that it is involved

Is RedGate SQL Source Control for me? [closed]

人盡茶涼 提交于 2019-12-17 23:14:00
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I've just inherited an SQL Server database. One of the things I will need to sort out is versioning and automated builds. It has been suggested that I should think seriously about recommending RedGate SQL Compare, but I have to admit I am a little uneasy about it. My

Readyroll : Getting Error While Build using VSTS : Drift analysis: These changes will NOT be applied because DriftOptionBlockDataLoss=True

旧时模样 提交于 2019-12-11 07:33:20
问题 Some of the scripts were migrate manually without using readyroll script. Now any new push to dev branch fails with following error : DB\DB.sqlproj(0,0): Error : Drift analysis: These changes will NOT be applied because DriftOptionBlockDataLoss=True (see 'obj\Release\DB_ReSync.sql' for details). Changes have been detected that could result in data loss for the following table object(s): dbo.Info. Process 'msbuild.exe' exited with code '1'. Same works fine on local but fails in the build

Most efficient and easiest way to back up a portion of specific tables hourly

隐身守侯 提交于 2019-12-11 06:01:04
问题 I need to create an hourly .SQB backup file of some specific tables, each filtered with a WHERE clause, from a SQL Server database. As an example, I need this data: SELECT * FROM table1 WHERE pk_id IN (2,5,7) SELECT * FROM table2 WHERE pk_id IN (2,5,7) SELECT * FROM table3 WHERE pk_id IN (2,5,7) SELECT * FROM table4 WHERE pk_id IN (2,5,7) The structure of the tables on the source database may change over time, e.g. columns may be added or removed, indexes added, etc. One option is to do some

SQLCop tests for tSQLt

核能气质少年 提交于 2019-12-05 13:05:01
问题 The Redgate tool SQLTest for SQL unit testing now offers the ability to add tests from SQLCop however the Redgate tool only comes with few of those tests prebuild. Since tests are just stored procedures I am sure somebody has implemented more of those tests. Are you willing to share? Anyone? 回答1: I wrote SQLCop. I've been working with the fine folks over at Redgate. Originally I provided 5 (or so) tests as a proof of concept. Since then, I have also provided the remaining tests that are

Database Change Management - Setup for Initial Create Scripts, Subsequent Migration Scripts

泪湿孤枕 提交于 2019-12-04 06:32:16
I've got a database change management workflow in place. It's based on SQL scripts (so, it's not a managed code-based solution). The basic setup looks like this: Initial/ Generate Initial Schema.sql Generate Initial Required Data.sql Generate Initial Test Data.sql Migration 0001_MigrationScriptForChangeOne.sql 0002_MigrationScriptForChangeTwo.sql ... The process to spin up a database is to then run all the Initlal scripts, and then run the sequential Migration scripts. A tool takes case of the versioning requirements, etc. My question is, in this kind of setup, is it useful to also maintain