Results 1 to 7 of 7

Thread: list of sql servers and database

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    9

    Unhappy

    how can i list down the list of sql servers and list of database???

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    88
    List all of databases: have to send the following query to the master database.

    SELECT * FROM sysdatabases

    List all of table in a specific database: have to send the following query to the specific database that you want to know.

    SELECT * FROM sysobjects

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    9

    how's the connection to sql and to find out the list of servers and database?????

    how's the connection to sql and to find out the list of servers and database?????


  4. #4
    Lively Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    88
    I'm not really sure that what you want to whether connect the SQL server from the program or just want to see it.

    If you want to connect the server from your program, you may use ADO connection object.

    e.g.
    Code:
    Dim objConn As ADODB.Connection
    
    Set objConn = New ADODB.Connection
    With objConn
        'In case of you connect via the ODBC
        .ConnectionString = "DSN=xxx;UID=yyy;PWD=zzz"
        .Open
    End With
    However, if you just want to see the server, you can use SQL Enterprise Manager. This tool comes with SQL server.

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    9
    now, i want to know is it possible to list down all sql servers and how?????

  6. #6
    Lively Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    88
    It is possible to list down all SQL server by using SQL Enterprise Manager.

  7. #7

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    9
    what im trying to say, is to list all the sql servers thru visual basic, pls help.. thanks...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width