Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

Attaching MDF and LDF Files Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
razanoor - 24 Mar 2008 10:52 GMT
i am facing a problem for SQL 2000 Database .. We have SQL 2000 Database on
customer site installed on C Partition ....MDF file is 300 MB but LDF file
became 12 GB  which took all of the C Partition Space.. Our Tech Supp Person
have moved these Physical Files From C to D partition and Deleted the files
and database from C partition and he created new database and tried to Attach
from D partion             but that gives an error(Error 9003: The
LSN(12560:120211:1) Passed to log scan in database 'DatabaseName' is invalid)
another problem is that latest backup is not available only old backup
available.

we restored old backup and tried to attach those files (300 MB and 12 GB)
but didnt work..  another error comes that CAN  NOT ATTACH FILES FROM
DIFFERENT DATABASES.

please can any one help in this case ...my email is raza_noor@hotmail.com
John Bell - 24 Mar 2008 11:21 GMT
Hi

Was the file detached correctly?

Try renaming the log file and using sp_attach_single_file_db to create a new
log, and then detaching/move/attaching the log or in SQL 2005 you can use
CREATE DATABASE with the ATTACH_REBUILD_LOG option instead of
sp_attach_single_file_db.

John
> i am facing a problem for SQL 2000 Database .. We have SQL 2000 Database
> on
[quoted text clipped - 16 lines]
>
> please can any one help in this case ...my email is raza_noor@hotmail.com
Uri Dimant - 24 Mar 2008 11:30 GMT
Hi
Does he try top attach with single file option (for more details please see
BOL) i.e without specifying .LDF file?
Don't  you have proper BACKUP?

> i am facing a problem for SQL 2000 Database .. We have SQL 2000 Database
> on
[quoted text clipped - 16 lines]
>
> please can any one help in this case ...my email is raza_noor@hotmail.com
Norman Yuan - 24 Mar 2008 15:28 GMT
If the Tech Supp Person did no detach database file before move it, he is
not qualified to manage a server/computer with production SQL Server.

> i am facing a problem for SQL 2000 Database .. We have SQL 2000 Database
> on
[quoted text clipped - 16 lines]
>
> please can any one help in this case ...my email is raza_noor@hotmail.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.