Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add server in Server Exporer - can same be done in code?

Status
Not open for further replies.

Sypher2

Programmer
Oct 3, 2001
160
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top