Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Adding new database
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 03/28/2015 :  14:48:40  Show Profile  Reply with Quote
I am new to sql but i tried to add one data base , i am getting error message When i try to attach the database
Not primary database file

Please any body can help

O buzaid

James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 03/28/2015 :  15:57:42  Show Profile  Reply with Quote
Is the file a primary database file? By default the primary file has the extension .MDF. If it is a backup file, you will need to RESTORE rather than ATTACH. Usually people give .BAK extension to backup files.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2019 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000