Wonder if SQL Server 2008 R2 Express edition can be used with C# Express 2010? I'm getting the error below when trying to add 'Service-based Database' item to my projects.
Please note, I've only got SQL Server 2008 R2 Express.
Update 1 - I checked the service (MSSQLSERVER
) and it's up and running, I've got no errors during SQL Server 2008 R2 installation either, the PC didn't have any previous versions of SQL Server installed.
The actual error:
Connections to SQL Server database files (.mdf) require SQL Server 2005 Express or SQL Server 2008 Express to be installed and running on the local computer. The current version of SQL Server Express can be downloaded at the following URL: http://go.microsoft.com/fwlink/?LinkId=125883
Thanks.
AttachDBFilename
is only possible when you use one of the Express editions of the product. So it won't work on the developer edition. Since user instances will be removed in a future version of SQL Server, you probably shouldn't use this. – Niranjan Singh