SQL 2005 database attach error

Posted on 2013-01-02
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?

Question by:jdr0606
LVL 25

Expert Comment

ID: 38738974
For sollutions see

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.
LVL 77

Expert Comment

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.

Author Comment

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?

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'teamview'.

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'REPAIR_ALLOW_DATA_LOSS'.
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

LVL 77

Expert Comment

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

Author Comment

ID: 38739088
It is currently in emergency mode
LVL 77

Accepted Solution

arnold earned 500 total points
ID: 38739104
LVL 42

Expert Comment

ID: 38739575
it is:

DBCC checkdb ('team', repair_allow_data_loss);

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
query execution hang 5 28
MS SQL with ODBC 5 34
VBScript Write Column Headers 3 32
Find SQL query used by application 3 16
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

813 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now