refactoring-databases

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

How to rename SQL table column name(s) and not break stuff

≡放荡痞女 提交于 2019-12-10 21:33:55
问题 I revisited some of my code from my beginner days and found that some of the SQL table column names are so ambiguous it made me cringe. Now If I go ahead and change the names, the time and effort required to correct all the mappings in the code doesn't seem justifiable at this point. I was wondering if its possible to provide an alias at all when inserting to the DB? I ask because you can use an alias on a SELECT like this: SELECT users.id, username, number AS order_number FROM users INNER