Under tempdb properties, I have 1 data file and 1 log file.

I have now added a 2nd data file.

Now when I click on 1st data file, the remove button is disabled. Why is that and how can I delete the 1st data file?


1 Answer 1


that is because the first file specified becomes the primary file. A database can have only one primary file. Primary file contains startup information for the database and points to the other files in the database. Every database has one primary data file. The recommended file name extension for primary data files is .mdf.

  • How to make the 2nd data file primary so that I can delete the 1st data file?
    – variable
    Aug 12, 2021 at 3:23
  • 2
    Why do you need to do that? Aug 12, 2021 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.