Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 23rd, 2004, 11:37 AM
Friend of Wrox
Join Date: Jan 2004
Location: , , USA.
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Server Database migration

Hello !
I have to migrate SQL Server 2000 databse from one web hosting company to another. I have been given only databsae.mdf and database.ldf files.No only I have to migrate structure of the tables but also data contains in those tables.
Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old January 23rd, 2004, 12:35 PM
Friend of Wrox
Join Date: Jun 2003
Location: Hudson, MA, USA.
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post

Well, the <database>.mdf file is the database and all it contains. The .ldf is the log file.

If the data was properly detached from the source server, then all you need to do is place it within reach of the target server and re-attach it. YOu don't need the log file, as a new one will be re-created.

The easiest way is to use Enterprise Manager, click on the server, then right click 'Databases', 'All Tasks', then 'Attach Database...', then point to the mdf file.

You can also use the 'sp_attach_single_file_db' system stored procedure to attach from Query Analyzer.

Jeff Mason
Custom Apps, Inc.
Reply With Quote
  #3 (permalink)  
Old January 23rd, 2004, 02:38 PM
sal sal is offline
Friend of Wrox
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts

Your hosting copany should be able to attach the file for you the first time around in case you can not get to it via eterprise manager. At times they also provide an asp front end that will do this for you.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Migration Database Nesterets Oracle 0 October 5th, 2008 08:31 AM
Tables migration from Access to SQL Server-VB.NET ayazhoda VB.NET 2002/2003 Basics 2 May 3rd, 2007 05:59 AM
Database migration MS Access 2003 to MS SQL 2000 ayazhoda SQL Server 2000 3 April 23rd, 2007 11:38 AM
Data Migration from Oracle to SQL Server AB SQL Server DTS 1 July 27th, 2005 12:38 AM
Migration hyper File to SQL Server chanour2003 SQL Server 2000 0 June 19th, 2004 06:24 AM

All times are GMT -4. The time now is 07:36 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.