There is a database server at IP address 192.168.1.11
. There are several databases on that server. It has authentication, like user : System
and pass : 123123
.
Now I want to connect to this server only, not any particular database, and then get a list of databases available on that server.
I know the normal procedure of connecting to a database with SqlConnection
. But I'm wondering how I could just get connected to the server and get the list of the databases on that server.
I am using Visual Studio 2010 and SQL Server 2008-