When I use Server Explorer, I can right click "Servers" and get a context menu with "Add server...". I can then type in an IP address, username, and password. Then the server appears.
This isn't really a share. It lets you view performance counters, SQL servers and such. I know adding a share is possible in code. Is it also possible to connect to the server in this "generic" sense in code like Server Explorer?
I am trying to connect to the SQL server in code. I can only do that if I have the server in Server Explorer. Otherwise I can't connect because I have no mechanism to connect to the server itself.
This isn't really a share. It lets you view performance counters, SQL servers and such. I know adding a share is possible in code. Is it also possible to connect to the server in this "generic" sense in code like Server Explorer?
I am trying to connect to the SQL server in code. I can only do that if I have the server in Server Explorer. Otherwise I can't connect because I have no mechanism to connect to the server itself.