Solved

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

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

759 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

20 Experts available now in Live!

Get 1:1 Help Now