Solved

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

Posted on 2009-07-11
5
403 Views
Last Modified: 2012-05-07
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,
Wally
0
Comment
Question by:wally_davis
  • 2
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 24832094
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


Regards,

Aneesh
0
 

Author Comment

by:wally_davis
ID: 24832108
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.
0
 

Author Comment

by:wally_davis
ID: 24832150
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.
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 24832268
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
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 24832866
>>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.  
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question