Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 44051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:35:30+00:00 2026-05-10T15:35:30+00:00

I have an old server with a defunct evaluation version of SQL 2000 on

  • 0

I have an old server with a defunct evaluation version of SQL 2000 on it (from 2006), and two databases which were sitting on it.

For some unknown reason, the LDF log files are missing. Presumed deleted.

I have the mdf files (and in one case an ndf file too) for the databases which used to exist on that server, and I am trying to get them up and running on another SQL 2000 box I have sitting around.

sp_attach_db complains that the logfile is missing, and will not attach the database. Attempts to fool it by using a logfile from a database with the same name failed miserably. sp_attach_single_file_db will not work either. The mdf files have obviously not been cleanly detached.

How do I get the databases attached and readable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:35:30+00:00Added an answer on May 10, 2026 at 3:35 pm

    I found this answer, which worked with my SQL 2000 machines:

    How to attach a database with a non-cleanly detached MDF file.

    Step 1: Make a new database with same name, and which uses the same files as the old one on the new server.

    Step 2: Stop SQL server, and move your mdf files (and any ndf files you have) over the top of the new ones you just created. Delete any log files.

    Step 3: Start SQL and run this to put the DB in emergency mode.

    sp_configure 'allow updates', 1 go reconfigure with override GO update sysdatabases set status = 32768 where name = 'TestDB' go sp_configure 'allow updates', 0 go reconfigure with override GO 

    Step 4: Restart SQL server and observe that the DB is successfully in emergency mode.

    Step 5: Run this undocumented dbcc option to rebuild the log file (in the correct place)

    DBCC REBUILD_LOG(TestDB,'D:\SQL_Log\TestDB_Log.LDF') 

    Step 6: You might need to reset the status. Even if you don’t, it won’t do any harm to do so.

    exec sp_resetstatus TestDB 

    Step 7: Stop and start SQL to see your newly restored database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer assuming $3 points to A[] lis $4 .word 4 lis… May 11, 2026 at 2:10 pm
  • added an answer You get the best performance if you calculate the values… May 11, 2026 at 2:10 pm
  • added an answer If we can assume that: the order of scores in… May 11, 2026 at 2:10 pm

Related Questions

I have an OLD server running DG/UX that will in the near future be
I have an old .dot file with a few dozen styles in it. I
I have an old Delphi codebase I have to maintain, lots of DLLs, some
I Have an old vbs script file being kicked off by an AutoSys job.
I have an old project in WSAD 5.1.2 with a WAS4 server configuration that's
I've been beating myself over the head with this app migration for a few
I'm in the trade of developing business web applications. They are mostly internal-use, sometimes
I'm replacing an old web application with a new one, with different structure. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.