VS2008 adding SQL Server Database (SQL Server 2008 Mgmt Studio) not working

Posted by Kahn on Stack Overflow See other posts from Stack Overflow or by Kahn
Published on 2009-10-27T20:53:06Z Indexed on 2010/05/09 9:08 UTC
Read the original article Hit count: 425

I'm trying to practice using the ASP.Net MVC at home, but I ran into an impossible problem. I cannot open a connection to SQL Server 2008, I get this error: "Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. ..."

I've googled around for numerous responses, none of them either working or addressing this issue. I'm running Vista 32bit, my SQL Server 2008 Mgmt Studio is also 32bit, I have SP1 installed both on VS2008 Professional, as well as the SQL Server. I changed the machine.config connectionStrings from ./SQLExpress to my SQL Server 2008 name.

Now if I connect manually through web.config, in an asp:datasource or code-behind, everything works fine. But for some reason trying to add a DB Connection directly like this always gets the error. This is pretty fatal, since I can't rightly do much unless I can use LINQ to SQL with my MVC test project, and this is the only way I know how. Worked fine in school and work, but not at home.

Installing SQL Server Express 2005, as some have suggested, is not an option. Obviously it HAS to work with SQL Server 2008.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about sql-server-2008

Related posts about visual-studio-2008