Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.
  #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.
  #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.


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

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