Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on a shared hosting plan and cannot install SQL Server Express, is there another way I can use my .mdf database or will I need to export it to a SQL Server database and change all my connection strings?

share|improve this question

migrated from Feb 11 '12 at 11:43

This question came from our site for professional and enthusiast programmers.

If you have an MDF file, the only way to access the information within it is through some type of SQL Server instance. You're going to have to use the ATTACH mechanism to add the .mdf to the instance. From there, you can query it as needed. From the sounds of things, you're going to have to modify where and how you connect, yes.

share|improve this answer
please have a look on this article… – Jason Clark Apr 19 at 8:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.