Solved

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

Posted on 2009-07-11
5
363 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help with a query 3 44
SQL Merige returns error code when updating 15 51
MS SQL page split per second is high 19 71
Record open by another user 6 50
Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
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 video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

948 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now