Skip to content Skip to sidebar Skip to footer

Cannot Open A Sql Server Database

I am using SQL Server to connect to the database. But, I receive this error when I attempt to connect. Code for connecting database ConnectionConfig connectionConfig = new Connecti

Solution 1:

There are TWO instances od SQL Server on 192.168.56.1, default and named(SQL).

The app tried to connect to the default instance where there is no FBMain database. This database exists on the named istance.

To connect to the named instance the connection string should specify the port (that can be found in SQL Server error log or in the Configuration Manager), or it can specify instance name like this: 192.168.56.1\SQL or ANIME-PC\SQL and SQL Server Browser shuold run in the second case.

Post a Comment for "Cannot Open A Sql Server Database"