September 10, 2012 at 5:11 am
Hi All,
I am waiting for project in whcih I need to upgrade sql server 2000 to 2008R2. The main thing is collation going to be changed.
It will be a side by side migration. Apart from this, I do not have any more details).
I plan to do scripting source objects and bcp them to destination.
Can anyone please advise how to do (better option) this upgrade with collation change?
Thanks
September 10, 2012 at 6:36 pm
Collation change can become very messy, especially when you're upgrading at the same time. I'm sure you'll be trying out this method before doing it in production system.
Anyhow, I can suggest the following "high level" points for the implementation:
1) Generate script to create your <database> and "all" objects within the database including object level permissions. Make sure collation is not used when generating the script
2) Modify the database name, collation name and file/filegroup names if required in database creation script. Only run the database creation script at this stage on the target instance. This will create a new empty database with required collation.
3) Check the remaining database script to find any deprecated feature used in the script and modify to use 2008 R2 alternative. You will also need to check the deprecated features in the target database after the migration. See the link below for details on how to check and fix deprecated features.
http://www.mssqltips.com/sqlservertip/1857/identify-deprecated-sql-server-code-with-extended-events/
4) Create all the database objects except Foreign Keys and Check constraints
5) Copy the data to new database using either bcp out/in or import/export wizard. Make sure identity insert is allowed in the data transfer for tables with identity columns
6) Apply the Foreign key and Check constraints.
7 ) If required, compare the two schema's for any differences excluding the collation.
Hope it'll help.
Cheers,
Fahim
September 10, 2012 at 10:03 pm
Thank you for your timely reply. I will have a note of these steps.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply