Trying to re-associate SQL 2005 MDF files to the correct executable file

I was attempting to attach to the Northwind database from SQL 2005 and it gave me some error.
Unfortunately, I pointed it/associated it to a filename called "sqlservr.exe" and now all my MDF File associations are all screwed up.
1. Can someone help me to reassociate it with the correct .exe or service file? For example, the LDF file shows an assocation with "SQL Server Database Transaction Log File (.ldf)"
2. How to successfully connect to the Northwind database from SQL 2005?
With many thanks,
Who is Participating?
Anthony PerkinsConnect With a Mentor Commented:
>>Now I just need to find out how to reassociate with the SQL Server 2005 Database Application.<<
Why are you trying to do this?  This is not MS Access.  SQL Server data files do not need to be associated to any application. Period.  
Aneesh RetnakaranDatabase AdministratorCommented:
Hello wally_davis,
You have to start the Sql server management studio, enter the login credentials
once u have successfully logged on, right click on databases -> attach -> browse and choose the mdfand ldf files , give a name to the database and click on


wally_davisAuthor Commented:
Aneesh, I attempted to do that initially. Please re-read my first EE Thread above. I accidentally associated a SQL Executable as my file type with MDF. The problem in my first question (#1), is that I need to figure out which Program to associate back to. Obviously it should be SQL Server 2005, but, when I go to re-associate, there is no program list in the Programs list for SQL 2005.
wally_davisAuthor Commented:
ok, I could attach the database after I updated permissions to the Service Account to have Full permissions. Now I just need to find out how to reassociate with the SQL Server 2005 Database Application.
Aneesh RetnakaranDatabase AdministratorCommented:
it is a sql server specific file, you are not supposed to open it, even if you open it, what you are supposed to do with that, it can harm the entire db file
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.