Hi,
I have MSSQLServer 2005 installed on my machine. I am creating a connection string like this:
String sqlConnectionString= user id=admin; password=admin; server=MachineName\MSSQLSERVER; Trusted_Connection=no; database=MYDataBase; connection timeout=30
When I do:
myConnection = new SqlConnection(sqlConnectionString);
myConnection.Open();
Open() command throws an exception :
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 that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25
Also the same string works fine on SQLEXPRESS/
**I have configured Sql Express to accept remote connections by choosing "Local and remote connection".Also I started SQL Browswer service.**
Is there anything wrong in connection string?