Overview
Databases are made to be refactored. Objects are always being modified as a database evolves. How can changes be accomplished?Explanation
Refactoring existing database objects is just as easy as adding new objects. Let's refactor the Team table'sCity column to CityName.Within the Solution Explorer, double click on the Team.sql file. This will present the dual Design/T-SQL panes. Within the T-SQL pane, right click on the City column and choose Refactor and Rename:
Now let's publish these changes. Remember the FutBol.publish.xml file we saved previously? We can now leverage it. In the Solution Explorer, double clicking on this file presents the Publish Database with the target instance pre-filled. If we had any advanced options modified from their defaults, they'd be included automatically as well.
source collected from mssqltips.com
No comments :
Post a Comment