MS SQL Server
  Home arrow MS SQL Server arrow Page 2 - Moving Data from SQL Server 2000 to SQL Se...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

Moving Data from SQL Server 2000 to SQL Server 2005
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 63
    2006-03-08

    Table of Contents:
  • Moving Data from SQL Server 2000 to SQL Server 2005
  • Taking data from SQL 2000 Server
  • Parking Data in SQL 2005 Server
  • Parking Data in SQL 2005 Server, continued

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Moving Data from SQL Server 2000 to SQL Server 2005 - Taking data from SQL 2000 Server


    (Page 2 of 4 )

    In order to detach a database, expand the Server node in SQL 2000 Server to reveal all the databases. Right click on the database you want to detach, in this case Northwind, and choose All Tasks. From drop-down menu click on Detach Database, as shown in Figure 1 below. Once you detach a database, that node disappears, but the related *.mdf and *.ndf remain where they are.

    Fig.1: Detaching Northwind from the Server

    The Detach Database window opens as shown in Figure 2.

    In the above window you can update statistics by placing a check mark. Clicking on OK detaches the database as shown Figure 3. The database files northwind.mdf (DATA) and northwind.ldf (Transaction Log) can be found at:

    C:\Program Files\Microsoft SQL Server\MSSQL\Data\northwnd.mdf
    C:\Program Files\Microsoft SQL Server\MSSQL\Data\northwnd.ldf
    

    If you want to continue using the Northwind database you will have to attach again. However, since it is also required to move this database to SQL 2005 server, copy these two files before reattaching Northwind to SQL 2000 Server.

    Now right click on the Databases node in the Enterprise Manager and choose Attach Database, which opens up the next window, Attach Database - (local).

    In this window you will need to look for the file you want to attach. It is important to know the file name and its location. It is also important to know who detached the database. Now click on the Verify... button.

    This opens up a search window, Browse for Existing File-(Local), where you can search through your machine to locate the files as shown in the next figure.

    In the above window you need to choose northwind.mdf. Both of the files will be attached as shown. The default name of the database node will be the same as the one that existed before detaching. After attaching the database you may carry out your operations with this database, as it becomes visible in the Enterprise Manager.

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


       · If you started with SQL Server 6.5 like I did, you will find the SQL 2005 Server...
       · You may also need to adjust the compatibility setting (properties>Options) to SQL2k5...
       · Thank you for the kind comment. Data which has is moved to SQL 2005 has most of the...
       · I'm a noob to sql 2005 and this was just what i needed to know and it worked...
       · hi JayaramI have an expired SQL Server 2000 (SP4) Installation, with a a couple...
       · Question: How can I upgrade from the expired evaluation version of SQL Server 2000...
       · Ben:After you install the Express edition follow the same procedure as in thsi...
       · How i will migrate the registered users from SQL2000 to another server with SQL2005...
       · Hi Jay,Thanks for your tutorial on the migration process. It was indeed...
       · You can use the stored procedure sp_help_revlogin which does an admiral job at...
       · Hi, in your comment you say that you start with SQL 6.5 ...Ok, I'm new in SQL...
       · Can I have the same tutorial
       · Is there any reason you could not migrate a database from 2000 EE to 2005 SE? And...
       · Hi Jay,I have a SQL 2000 server and want to move to SQL 2005. But the condition is...
       · Hi Everyone,I too am rather new to SQL as well. We are migrating everything from...
     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...

     
    Application Delivery: Everything You Wanted to Know, but Didn`t Know You Needed to Ask
    A comprehensive guide to examining the topics of Wide-area Data Services and app....

     
    Best Practices: Safe and Secure Hardware Asset Recovery
    Companies increasingly must meet EPA and local requirements for the disposal of ....

     
    Managing SSL Security in Multi-Server Environments
    Read this white paper to learn how to simplify management of your organization's....

     
    Open Source Security Myths
    Open Source Software (OSS) is computer software whose source code is available t....

     
    Power and Cooling Capacity Management for Data Centers
    This paper describes the principles for achieving power and cooling capacity man....

     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT