 |
| 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
|
|
|
|

February 7th, 2005, 01:51 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 7th, 2005, 06:43 PM
|
|
Authorized User
|
|
Join Date: Feb 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Attach the .mdf file, that should automatically find .ldf
Regards
Mujib
|
|

February 8th, 2005, 03:48 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am attaching the same file .mdf file it shows the same error
|
|

February 9th, 2005, 04:18 AM
|
|
Authorized User
|
|
Join Date: Nov 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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'
|
|

February 10th, 2005, 03:43 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 12th, 2005, 11:57 AM
|
|
Friend of Wrox
|
|
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
|

February 14th, 2005, 01:40 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have gone through these sites but there is still same error
Any Way Thankx
Please Help
|
|

February 16th, 2005, 01:04 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I want help Please Help Me
|
|

February 16th, 2005, 04:42 AM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I think you should restore your master db first and then try sp_attach_db, if it does not, try sp_attach_single_file
|
|

February 24th, 2005, 12:48 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
but when i restore master db sql server does not start it shows error
sql server does not exists or access denied
|
|
 |