Quote:
Originally Posted by morteza
Hi, There
I add the PlanetWrox.mdf database to my vs2010 App_Data folder .I check Security tab and i have full control over this folder.But When I try to Open Database( By Double-click on it) I get following message :
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.
|
I don't think this error message comes up if the problem is permissions. But I could be wrong about that.
Quote:
I check in services that my sql server express instance[SQLEXPRESS] is running and check both mdf file( 2005 and 2008).
Really i don't know what i must do.
|
You will get that error message if the service isn't started or the instance you're trying to connect to isn't running. You'll also get it if you installed a full version of SQL Server 2008 instead of the Express version. Neither of those look like they apply to you.
IN VWD, go to the
Tools menu and select
Options.... Then locate the
Database Tools heading and expand it. Then click on
Data Connections.
The value in the box should contain the name of your SQL Server Express instance (SQLEXPRESS). If the name appears to be correct you can try deleteing it and leaving the box blank: this tells VWD to use your default instance, which is handy because you don't need to know the name of the instance in order to use it.