I had my disk die with the only copy of my wife’s medical “Question and Answer” (Q_And_A) database on it. She thought it was safe and sound on my computer, and I thought we had an “Off site” backup of the data on hers and hadn’t set up backup for it.
1.) The bad things are, only the .mdf file was intact.
2.) All of the permissions based on the old copy of Windows 7 and SQL 2005 or 2008 ( I am not sure which the .mdf was created in.) have gone the way of the dodo.
Bought a new disk. Reloaded windows 7 64 bit. Loaded SQL 2014 (Thought now was a good time to upgrade.) Problem… so far I have not been able to attach and recreate the log file …
Just to finish up the data I have, the database was closed properly and is NOT in a read only state according to file properties. That said, I still don’t have a solution.
So far I tried these three sets of commands:
CREATE DATABASEQ_And_AON
(FILENAME=N'E:\Mikes 128GB\SQL2014\MSSQL12.SQL2014\MSSQL\DATA\Q_And_A.mdf')
FORATTACH_REBUILD_LOG
GO
And this set of commands:
CREATE DATABASEQ_And_AON
(FILENAME=N'E:\Mikes 128GB\SQL2014\MSSQL12.SQL2014\MSSQL\DATA\Q_And_A.mdf')
FORATTACH
GO
EXECsp_attach_single_file_db@dbname='Q_And_A', @physname=N'E:\Mikes 128GB\SQL2014\MSSQL12.SQL2014\MSSQL\DATA\Q_And_A.mdf'
GO
So far this is the computer’s reply to everything I have thrown at it. I haven’t told my wife that 600 hours of her work is inaccessible, and I would really rather not do so. Anything anyone can offer would be great.
File activation failure. The physical file name "E:\Mikes 128GB\SQL2014\MSSQL12.SQL2014\MSSQL\DATA\Q_And_A_log.ldf" may be incorrect.
The log cannot be rebuilt because there were open transactions/users when the database was shutdown, no checkpoint occurred to the database, or the database was read-only. This error could occur if the transaction log file was manually deleted or lost due to a hardware or environment failure.
Msg 1813, Level 16, State 2, Line 1
Could not open new database 'Q_And_A'. CREATE DATABASE is aborted.
Is there anything else anyone out there can offer as help? My wife has often said that she doesn’t believe in divorce. But murder she will consider. If she loses 600 hours of her data this could be my last post. I am joking … I think … That said, any help is extremely welcome. Thanks in advance.