0

I am using Visual Studio 2012 working on a web application, a registration page. I have installed SQL Server 2008 Express and done the configuration but still when when I try to add a SQL Server database file in the project, I get an error

Connection to SQL Server Database file (.mdf) requires SQL Server 2005 or SQL Server 2008 Express to be installed and running on you local computer

Please help I am stuck here.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

1 Answers1

0

You need to install the LocalDB or to change your connection string to use the SQL server you have installed, it seems like you are trying to use a MDF file.

Luis Tellez
  • 2,785
  • 1
  • 20
  • 28
  • SQL Server 2008 doesn't have a "LocalDB" version (that was introduced in SQL Server **2012** ....) – marc_s Feb 18 '16 at 09:40
  • Yes but visual studio 2012 does have it. – Luis Tellez Feb 18 '16 at 09:43
  • Only if you install the included SQL Server **2012** Express LocalDB .... if you've installed SQL Server **2008** Express before, then you **don't have** LocalDB :... – marc_s Feb 18 '16 at 09:45