Solved

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

Posted on 2009-07-11
5
414 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

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…
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 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