SQL DB Project and column renaming
Do you use Microsoft Visual Studio SQL Database Project?
Do you need to rename all columns of a table? (ok, it's a rare operation).
Please pay a lot of attention because deploy and schema compare functions don't warn you that the table will be dropped and recreated... with a completely data loss!!!
This strange and dangerous behavior doesn't happen when you rename less columns.
The work-around is to manually add sql script to "copy and paste" the datas from old to new table.
- Posted using my iPhone
11:45 AM
|
Labels:
HowTo,
SQL Server,
Visual Studio
|
This entry was posted on 11:45 AM
and is filed under
HowTo
,
SQL Server
,
Visual Studio
.
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.


0 comments:
Post a Comment