- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- BackOffice Products
- >
- Re: SQL
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 08:35 PM
03-07-2005 08:35 PM
i need to import a sql7 database export file with an extension of .MDF and a log file into an sql2000 sp3 database.
i have looked at the import option but i cannot see anything that looks for a file with the extension i have.
can someone tell me how to achieve this it is a fairly large db and i need to get it going.
regards
Andrew
Solved! Go to Solution.
- Tags:
- SQL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 08:46 PM
03-07-2005 08:46 PM
Re: SQL
Use the .MDF database extension is recognized by SQL 2000 SP3 as well as .LDF log file extension?
sp_attch
http://www.15seconds.com/issue/050127.htm
Hope this help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 08:48 PM
03-07-2005 08:48 PM
Re: SQL
Open up MS-SQL Server 2000 Enterprise Manager at the destination Server.
Select the SQL Server you want to import the .MDF file to.
Select DTS (Data Transforming Service)
Rigth clic on Local Packages, New Package
Choose a connection type: MS-Access or Text-File source.
Then choose "Microsoft OLE DB Provider for SQL Server" as the destination connection.
Then, select the third default Task: DTS
I hope it helps.
plz, report back.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 08:51 PM
03-07-2005 08:51 PM
SolutionSp_detach_db and Sp_attach_db Stored Procedures
To use the sp_detach_db and sp_attach_db stored procedures, follow these steps: 1. Detach the database on the source server by using the sp_detach_db stored procedure. You must copy the .mdf, .ndf and .ldf files associated with the database to the destination server. See this table for a description of the file types:
File name extension Description
.mdf Primary data file
.ndf Secondary data file
.ldf Transaction log file
2. Attach the database on the destination server by using the sp_attach_db stored procedure and point to the files you copied to the destination server in the preceding step.For additional information about how to use these methods, click the article number below to view the article in the Microsoft Knowledge Base:
http://support.microsoft.com/?scid=kb;en-us;314546#10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 05:44 PM
03-08-2005 05:44 PM
Re: SQL
I'd appreciate keeping us updated!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 07:46 PM
03-08-2005 07:46 PM
Re: SQL
I have eventually got this all sorted it would appear that your comments where correct and the file i had was a copy of the master DB file and once we resolved another issue i copied it onto the relevant area and attached it, it all seems to be as it should, was a bit confused to start ass i was told this was an export, which it wasn't.
so thanks again, all done.
regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 08:07 PM
03-08-2005 08:07 PM
Re: SQL
After copying the DB file (MDF) and the Transaction Log file (LDF)and attach them successfully to the new SQL Server.
Restore the DB Backup from the old SQL Server to the new one if you have performed a backup newer than those (MDF & LDF) files.
Come back for any questions