schema-compare

SQL Server Data Tools Ignores Refactor on Schema Compare

帅比萌擦擦* 提交于 2020-01-15 05:57:28
问题 I'm having a seemingly identical problem to what is described here: SSDT Refactor Rename is ignored by the Schema Comparison script generation. Essentially, the refactor component of SQL Server Data Tools is not working on schema comparison/update. Instead of renaming a table, for instance, the table with the old name is dropped and the table with the new name is created. Unfortunately, I do not see an accepted answer to that question. I found a similar question, which seems to be have been

Cannot select target in SQL Server Schema Compare, Visual Studio 2017

独自空忆成欢 提交于 2019-12-24 07:07:10
问题 I'm having an odd problem wich I haven't been able to find a solution for. Suddenly I am not able to select a Target or Source in Schema Compare in VS2017. When I click the Combobox nothing happens. It is still possible to do a Data Compare and SQL Queries. I've updated SSDT to version 15.5.1 but with no succes. VS is version 15.5.2 回答1: I was able to make this work using the arrow keys. A workaround, but definitely malfunctioning drop downs. See also here 来源: https://stackoverflow.com

SSDT Refactor Rename is ignored by the Schema Comparison script generation

旧街凉风 提交于 2019-12-13 14:52:30
问题 I right-clicked on a column name in a CREATE TABLE script and selected Refactor | Rename. It renamed the column and the expected entry appears in the refactorlog XML file. However, when I run a Schema Comparison from my project to my database and then generate the script, the script contains no mention of a refactoring and wants to drop the existing column name and add it with the new name. I have no _RefactorLog table in this database. The deployment script does not attempt to create one. It

DB2 SQL query to compare 2 schemas

点点圈 提交于 2019-12-11 13:11:24
问题 I have been unable to find a solution in my searching for this throughout the web, most responses recommend a tool, which leads me to believe this may be very difficult with an SQL query or something, but... I have been told to write a query for our DB2 database, using Toad to interface, that will compare 2 schemas and provide a result if there are any differences. I know this capability exists in Toad, but for some reason our DBA does not want to use it. Purchasing additional software is not

Comparing schemas ignoring the schema name

末鹿安然 提交于 2019-12-10 12:09:34
问题 I'm using the SQL Server Data Tools to compare the tables two schemas. The schemas are similar and should be adapted to be the same. Now my problem is, that those two schemas are differently named. Example: [sourceDB] [FOO].[table1] [FOO].[table2] [targetDB] [BAR].[table1] [BAR].[table2] When I run the compare, it wants to remove both tables in schema BAR and recreate them with schema FOO . What I want is to just compare both tables regardless of the schema name and get a script that alters

Transferring saved data connections between Visual Studio installations

廉价感情. 提交于 2019-12-10 10:18:14
问题 I use the data and schema comparison tools in Visual Studio a great deal. I just finished installing VS 2010 on a new VM and realized, of course, that all the saved data connections from my previous installation are not available. Is there a way to transfer these connections between installations of VS 2010? 回答1: I believe you just copy the file from C:\Users\<username>\AppData\Roaming\ Microsoft\VisualStudio\10.0\ServerExplorer\DefaultView.SEView from the installation with the data

Transferring saved data connections between Visual Studio installations

你说的曾经没有我的故事 提交于 2019-12-06 02:33:51
I use the data and schema comparison tools in Visual Studio a great deal. I just finished installing VS 2010 on a new VM and realized, of course, that all the saved data connections from my previous installation are not available. Is there a way to transfer these connections between installations of VS 2010? I believe you just copy the file from C:\Users\<username>\AppData\Roaming\ Microsoft\VisualStudio\10.0\ServerExplorer\DefaultView.SEView from the installation with the data connections to the same location in the VM. 来源: https://stackoverflow.com/questions/5173406/transferring-saved-data

Visual Studio 2013 SQL Schema Compare: Ignore Column Order

*爱你&永不变心* 提交于 2019-12-05 11:31:43
问题 In Visual Studio 2013, is there a way to ignore column ordering when doing a Schema Compare? I see that this feature was removed from Visual Studio 2012 (according to this: https://stackoverflow.com/a/13848952/188740), but I'm hoping it was brought back in version 2013. Here's a quick visual to illustrate what I'd like to ignore: 回答1: As described on this blog post, Ignore column order is now an option in SSDT version 17.0, which is compatible with Visual Studio 2015. If you’ve ever had to

SQL Server Compare Schema in Visual Studio 2017

眉间皱痕 提交于 2019-12-01 05:19:58
I am attempting to compare schemas of two databases on the same server. The two databases are named benchmarkdb and benchmarkdb_dev . In Visual Studio 2017, I go to Tools > SQL Server > New Schema Compare... From both drop down menus labeled "Select Source" and "Select Target" (as seen in the picture below), I want to select benchmarkdb as source and bencmarkdb_dev as target. After clicking to select a source, the "Select Source Schema" pops up, and I clicked the "Select Connection..." button, which brought another popup. The newest popup (the one on the right in the picture below) shows both

SQL Server Compare Schema in Visual Studio 2017

吃可爱长大的小学妹 提交于 2019-12-01 02:20:37
问题 I am attempting to compare schemas of two databases on the same server. The two databases are named benchmarkdb and benchmarkdb_dev . In Visual Studio 2017, I go to Tools > SQL Server > New Schema Compare... From both drop down menus labeled "Select Source" and "Select Target" (as seen in the picture below), I want to select benchmarkdb as source and bencmarkdb_dev as target. After clicking to select a source, the "Select Source Schema" pops up, and I clicked the "Select Connection..." button