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 8247999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:02:53+00:00 2026-06-07T23:02:53+00:00

I have restored 4 databases into my new SQL 2008 R2 Server. Two databases

  • 0

I have restored 4 databases into my new SQL 2008 R2 Server.
Two databases came from a SQL 2000 Backup, the other two from SQL 2005.
How come when I look at the folder where the Row Data files are stored and also look at the Database Properties under files, the 2000 database files have MDF extensions with the type SQL Database Primary Data File, and the ones that came from 2005 have no extensions with the type “File”?

All databases are working properly.

  • 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. Editorial Team
    Editorial Team
    2026-06-07T23:02:55+00:00Added an answer on June 7, 2026 at 11:02 pm

    I’d guess because the files don’t have .mdf extensions in Windows Explorer. This isn’t necessarily a terrible thing, it just means that the people who set up the original databases used a CREATE DATABASE statement and forgot to use extensions when they named the physical file names.

    If you want to fix this, you can follow this process:

    ALTER DATABASE whatever SET OFFLINE;
    
    ALTER DATABASE whatever MODIFY FILE (name = 'logical_name', 
      filename = 'path with .mdf added to the end');
    
    -- repeat for log file with .ldf extension
    

    Now manually rename the files in Windows Explorer, adding the extension.

    Then:

    ALTER DATABASE whatever SET ONLINE;
    

    At least one place where this missing extension can be a problem is if you have virus or malware software running, and it’s set to ignore SQL Server files, for example, it can’t ignore files with no extension.

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

Sidebar

Related Questions

I have restored a database from a backup onto a new server, and I
Basically I have a two databases on SQL Server 2005. I want to take
I have created some new databases in SQL Server 2008 Express (10.0.1600.22) and I
A database that was originally from SQL Server 2008, was restored into SQL Server
I have backed up a database into a file using SQL Server from my
I have two SQL 2005 instances that reside on different networks. I need to
In SQL Server 2008, I have my parent table in one database, and the
I am looking into using log shipping in a SQL Server 2005 environment. The
I restored two databases using two different .BAK files (different nightly backup files) I
All - I have recently upgraded our production environment from Sql Server Reporting Services

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.