Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SQL 2005 database attach error

Posted on 2013-01-02
7
Medium Priority
?
323 Views
Last Modified: 2013-01-07
An error occurred while processing the log for database "Team". If possible, restore from backup. If a backup is not available, it may be necessary to rebuild the log. Could not open the new database "Team". CREATE DATABASE aborted.

Unfortunately I do not have a database backup.  What are my options?

Thanks
0
Comment
Question by:jdr0606
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 25

Expert Comment

by:jogos
ID: 38738974
For sollutions see

http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/

And don't forget to take on your 'Unfortunately I do not have a database backup'. And not the copy-the-files kind off that probably is the source off your error.
0
 
LVL 80

Expert Comment

by:arnold
ID: 38738988
What do you mean by attach, did you move the MDB and LDF files from a different system after it crashed?

Only work on copies to make sure if ne thing does not work you have the original with which to try another approach.
http://blog.sqlauthority.com/2010/04/26/sql-server-attach-mdf-file-without-ldf-file-in-database/
0
 

Author Comment

by:jdr0606
ID: 38739069
When I run the following commands as instructed in the above link I get these errors.

Where am I using the wrong syntax?

DBCC CHECKDB 'team' REPAIR_ALLOW_DATA_LOSS
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'teamview'.

DBCC CHECKDB REPAIR_ALLOW_DATA_LOSS
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'REPAIR_ALLOW_DATA_LOSS'.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 80

Expert Comment

by:arnold
ID: 38739087
What is the status of the database, does it attach and comes in as read-only?
0
 

Author Comment

by:jdr0606
ID: 38739088
It is currently in emergency mode
0
 
LVL 80

Accepted Solution

by:
arnold earned 1500 total points
ID: 38739104
0
 
LVL 43

Expert Comment

by:Eugene Z
ID: 38739575
it is:

DBCC checkdb ('team', repair_allow_data_loss);
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question