Detaching database in 2000 > Attaching database in 2005

Gumleguf
Member Posts: 38
Hi all,
The exercise I am doing is upgrading from Nav 3.70/SQL2000 -> Nav 4.03/SQL2000 -> Nav 5.01/SQL2000. All of this went good. Now I need ti finalize by migrating to SQL2005.
Can I simply detach the databse from SQL2000 and attach it to SQL2005, or is there some security settings etc. I need to do?
Someone has asked a similar question in a different forum - http://dynamicsuser.net/forums/p/19762/115251.aspx - but I can't quite find the answer to my question.
/G
The exercise I am doing is upgrading from Nav 3.70/SQL2000 -> Nav 4.03/SQL2000 -> Nav 5.01/SQL2000. All of this went good. Now I need ti finalize by migrating to SQL2005.
Can I simply detach the databse from SQL2000 and attach it to SQL2005, or is there some security settings etc. I need to do?
Someone has asked a similar question in a different forum - http://dynamicsuser.net/forums/p/19762/115251.aspx - but I can't quite find the answer to my question.
/G
0
Comments
-
How big is your database? If it's not too large you could simply back up from your old NAV database and into your new SQL 2005 one?
Technically you should be able to just detach and attach the database files to the new server - but there may be compatability level issues and other issues that prevent you from getting the full use of SQL 200 5 capabilities on the database.0 -
The database is around 25GB. I have actually started a backup export of the database from SQL2000, that I'm going to import into SQL2005 tomorrow. I was just trying to skip this last step, because it takes so long time.
But you are saying it's safest to take the export/import road rather than detach/attach?0 -
SQL Server 2005 applies upgrade steps when attaching a SQL Server 2000 database to it. I have never seen a problem in doing this, you do not need to backup/restore either from NAV or SQL Server.Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Cool. I have a few more of these scenarios to go through, so I'll remember to try the detach/attach next time.
Thanks guys!0 -
Hi!
Well, I've done that plenty of times: detach 2000 - copy/move - attach 2005: no problems, never. As soon as you attach a SQL 2000 database to a 2005 server it is converted to a SQL 2005 db; but you have to change the "Database Compatibility Level" from "80 (2000)" to "90 (2005)". This "Compatibility Level" defines how the TSQL syntax is interpreted; e.g. to use all the new DMV etc. you need to set it to "90".
The only aspect to consider might be: which is faster? Making a SQL backup and restore, or detach/attach? This actually depends on the size of the database files, the space used and the capabilities of the disk-subsystem ...
When it is about "security", of course, you have to set up the Logins and Users in the new server, too. But this script/process will help you: http://support.microsoft.com/kb/246133
Kind regards,
JörgJörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
And look there: http://dynamicsuser.net/blogs/kine/arch ... -2005.aspx
I described one thing you need to take into account when moving DB from MS SQL 2000 to higher version...0 -
Thanks guys. Great stuff.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions