We just recently switched from Visual Studio 2008 to Visual Studio 2010. I have an application which uses sql express database locally. The problem is after installing new Visual Studio, I can't access the Sql Server 2008 express. When I try to create a new database, or change the existing one, I get following message:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and and that SQL Server is configured to allow remote connections. (provider: TCP Provider, Error 0 - No connection could be made because target machine is actively refused it.)
When I check the sqlexpress windows service, it is stopped. If I try to enable it, it runs for a few seconds and then stops again.