Reputation: 16970
I'm trying some of the ASP.NET MVC tutorials and one of them has the following steps:
However, once I do that, I get the following message from Visual Studio:
Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function proprely. Please verify the installation of the component or download from the URL...
The thing is that I have SQL Server 2008 Developer Edition installed, and I would really rather not install any Express versions (2005 or 2008) if I don't have to. Is there a work-around for this issue?
Upvotes: 15
Views: 9133
Reputation: 1741
I ran into this problem too on 64-bit Windows 7 (using 64-bit SQL Server Express 2008).
There are two methods of fixing this problem referenced in the Microsoft Support Knowledge Base article:
1. Workaround
To work around this problem, uninstall the 64-bit version of SQL Server Express 2008, and then install the 32-bit version of SQL Server Express 2008.
If you don't want to do the uninstall/install, then try the Hotfix method below.
2. Hotfix
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.
Although the article itself doesn't include a link to the hotfix, you can get it here: http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=957944
Upvotes: 12
Reputation: 1041
I have the same problem but I've sql 2008 express installed. any way to make it work with sql 2008 express so I don't have to install the 4th sql instance on my machine?? I already have sql 2005, sql 2008, sql 2008 express
what the F... :)
Upvotes: 1
Reputation: 1516
I want to point out that I have both Developer edition and Express edition installed. And I still run into the same error. I think Express edition must be installed as a single instance.
Upvotes: 2
Reputation: 11769
To illuminate masfenix's reply, SQL Express supports one feature that is not supported by full-blown SQL Server: a "user instance" database. With SQL Express installed and an mdf file in your App_Data folder, the application will dynamically attach and detach it as needed. For hobbyist or small business sites, this may be perfect. If you're running SQL elsewhere in the enterprise, you probably don't want to go this route and therefore the feature isn't useful to you.
Upvotes: 7
Reputation: 172
Actually SQL express is a whole different database engine then SQL Server 2005. So yes if you want to use mdf files you'd need SQL Express.
Upvotes: 5