Improve company productivity with a Business Account.Sign Up


SQL 2005 database attach error

Posted on 2013-01-02
Medium Priority
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 82

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'.
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

LVL 82

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 82

Accepted Solution

arnold earned 1500 total points
ID: 38739104
LVL 43

Expert Comment

by:Eugene Z
ID: 38739575
it is:

DBCC checkdb ('team', repair_allow_data_loss);

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…

589 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