SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 error 9004
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gigi69
Starting Member

2 Posts

Posted - 08/01/2006 :  12:38:13  Show Profile  Reply with Quote
i need to attach my db, but i receive this error:

an error occurred while processing the log for database 'xyj'.

Could not open database 'xyj' . Create database is aborted. (Microsoft Sql Server,

error 9004).

Can you help me?

paulrandal
Yak with Vast SQL Skills

USA
899 Posts

Posted - 08/01/2006 :  17:31:54  Show Profile  Visit paulrandal's Homepage  Reply with Quote
Are you on SQL 2000 or 2005? Do you have any backups of the database?

Paul Randal
Lead Program Manager, Microsoft SQL Server Storage Engine + SQL Express
(Legalese: This posting is provided "AS IS" with no warranties, and confers no rights.)
Go to Top of Page

gigi69
Starting Member

2 Posts

Posted - 08/02/2006 :  00:43:32  Show Profile  Reply with Quote
The db was created with sql 2000, but i make an upgrade to sql 2005.
I have a backup...one month ago...
thank you for your interesting...
gigi
Go to Top of Page

paulrandal
Yak with Vast SQL Skills

USA
899 Posts

Posted - 08/02/2006 :  10:21:00  Show Profile  Visit paulrandal's Homepage  Reply with Quote
You have two choices:
1) restore from the month old backup
2) use a trick to enable attaching the database, but then you'll need to run emergency mode repair, which will result in data loss and transactional inconsistencies.

If you can cope with the loss of work, I'd go with using the backup.

Paul Randal
Lead Program Manager, Microsoft SQL Server Storage Engine + SQL Express
(Legalese: This posting is provided "AS IS" with no warranties, and confers no rights.)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000