A question about deployment to production
jbenckertNT
Posts: 3
A common scenario for us is data conversion. What I mean is that we'll have a need to change the database schema to support new application features and we'll write scripts that will
*Create the new schema
*Convert the data from the old to the new Schema
*Deprecate/remove/drop the old schema
How can SQL Source Control and/or SqlCompare be useful in this scenario?
*Create the new schema
*Convert the data from the old to the new Schema
*Deprecate/remove/drop the old schema
How can SQL Source Control and/or SqlCompare be useful in this scenario?
Thanks.
-Joe
-Joe
Comments
What sort of changes do you have in mind?
David Atkinson
Red Gate Software
Product Manager
Redgate Software
-Joe
If you can think of any features that could make our tools easier to use, we'd love to hear them.
David
Product Manager
Redgate Software
- create new column
- run update script to populate new column
- drop old column
this is fairly typical I imagine, but I'm concerned that SQL Source Control wont be able to help me with this, or indeed SQL Compare
Idea:
perhaps every checkin could have an optional associated data modification script, tho in this case I'd still have to do this change in 2 seperate checkins, so its not ideal at all.
I'm prepared to write custom SQL, but its how this can be integerated in and performed as part of the deployment script.
if the checkin contained the deletion of the old column, and the addition of the new one, then SSC would allow me to add a data migration script to the checkin. I'd still have to communicate to SSC the relationship between these columns, and when to run th script.