Name of database-server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michel Vanderbeke

    #1

    Name of database-server

    Hello,

    How can I retrieve the name of the database-server in a VB.NET program?

    Thank you,

    Michel


  • rowe_newsgroups

    #2
    Re: Name of database-server

    On May 7, 9:10 am, "Michel Vanderbeke" <michel.vanderb ...@skynet.be>
    wrote:
    Hello,
    >
    How can I retrieve the name of the database-server in a VB.NET program?
    >
    Thank you,
    >
    Michel
    For which type of database?

    For Oracle you could parse the tnsnames.ora file to get a list of
    possible servers. I have seen unmanaged ways to get a list of Sql
    Server instances, but they seem to be buggy when used in .Net (or at
    least when I tried them). Do a google search for "list of sql servers
    vb.net" or something similar and you should find quite a few links.

    Thanks,

    Seth Rowe

    Comment

    Working...