Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
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
 
Old February 7th, 2005, 01:51 AM
Authorized User
 
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tranfer sql database from one machine to another

Hi
  Please help

      I was having an sql database on my sql 2000 server machine.The hard disk gets full damaged.Luckily I have latest Backup file,Both .mdf and .log file and also sql script file.
     I installed sql 2000 on another machine now i want to transfer this sql database in this new sql 200 machine

     When I Attach the database to sql server it show following error
error 5172 <path>\mydatabase_log.ldf is not a valid database file header.The pageaudit property is incorrect

Thankx Any Way



 
Old February 7th, 2005, 06:43 PM
Authorized User
 
Join Date: Feb 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Attach the .mdf file, that should automatically find .ldf

Regards
Mujib

 
Old February 8th, 2005, 03:48 AM
Authorized User
 
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am attaching the same file .mdf file it shows the same error

 
Old February 9th, 2005, 04:18 AM
Authorized User
 
Join Date: Nov 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Please try as given below:-
EXEC sp_attach_db @dbname = N'pubs',
   @filename1 = N'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs.mdf',
   @filename2 = N'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs_log.ldf'



 
Old February 10th, 2005, 03:43 AM
Authorized User
 
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Brother
 when i execute
EXEC sp_attach_db @dbname = N'<datbasename>',
   @filename1 = N'<path>\mydatabse.mdf',
   @filename2 = N'<path>\mydatabase_log.ldf'
It show following error:
 <path>\mydatabase_log.ldf is not a valid database file header.The pageaudit property is incorrect

Please Help I am In Trouble

 
Old February 12th, 2005, 11:57 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Check this :: http://searchdatabase.techtarget.com...%2Fpr%2F286331

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old February 14th, 2005, 01:40 AM
Authorized User
 
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have gone through these sites but there is still same error

Any Way Thankx
Please Help

 
Old February 16th, 2005, 01:04 AM
Authorized User
 
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I want help Please Help Me

 
Old February 16th, 2005, 04:42 AM
Registered User
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you should restore your master db first and then try sp_attach_db, if it does not, try sp_attach_single_file

 
Old February 24th, 2005, 12:48 AM
Authorized User
 
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

but when i restore master db sql server does not start it shows error

sql server does not exists or access denied






Similar Threads
Thread Thread Starter Forum Replies Last Post
Retore Db from a remote machine to a local machine srkvellanki BOOK: Beginning SQL 0 October 3rd, 2008 05:17 PM
SQL Server Access across a remote machine rajen SQL Server 2000 3 July 27th, 2006 02:28 PM
Using DTS to sync Remote Database to Local Machine kevorkian SQL Server DTS 1 March 21st, 2005 11:13 PM
store machine name in database alyeng2000 ASP.NET 1.0 and 1.1 Professional 5 September 29th, 2004 10:55 PM





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