SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Migration- Change in scripts


SQL Migration- Change in scripts

Author
Message
dva2007
dva2007
SSCertifiable
SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)

Group: General Forum Members
Points: 6853 Visits: 1636
I am working on migration project and just wanted to check the best way to do this. We are doing side by side migration (2005 to 2012)

We have one physical server and moving databases to two different VMs and this means splitting databases on to two servers. As a result some of the references needs to be updated. I was keeping a log of all stored procedures, views and functions which needs updating. However after keeping log of 10 objects I found we have more than 100 object to change. We can script out all objects. I thought instead of keeping script of all objects which I am updating, it is easer to script out all objects following the change and testing on new server. Then when we backup, copy and restore the databases (go live) we will have updated data. I can then run all scripted objects from 2012 server which means all changes will be applied.

Is this the best option to apply the changes?
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)

Group: General Forum Members
Points: 217574 Visits: 24938
dva2007 - Monday, February 5, 2018 8:13 AM
I am working on migration project and just wanted to check the best way to do this. We are doing side by side migration (2005 to 2012)

We have one physical server and moving databases to two different VMs and this means splitting databases on to two servers. As a result some of the references needs to be updated. I was keeping a log of all stored procedures, views and functions which needs updating. However after keeping log of 10 objects I found we have more than 100 object to change. We can script out all objects. I thought instead of keeping script of all objects which I am updating, it is easer to script out all objects following the change and testing on new server. Then when we backup, copy and restore the databases (go live) we will have updated data. I can then run all scripted objects from 2012 server which means all changes will be applied.

Is this the best option to apply the changes?

You may find that you are able to solve some of these problems more efficiently through the use of Synonyms.



Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search