|
-
Sep 22nd, 2000, 08:19 PM
#1
Thread Starter
New Member
how can i list down the list of sql servers and list of database???
-
Sep 23rd, 2000, 12:31 AM
#2
Lively Member
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
-
Sep 24th, 2000, 09:23 PM
#3
Thread Starter
New Member
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?????
-
Sep 24th, 2000, 10:26 PM
#4
Lively Member
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.
-
Sep 24th, 2000, 10:59 PM
#5
Thread Starter
New Member
now, i want to know is it possible to list down all sql servers and how?????
-
Sep 25th, 2000, 08:39 AM
#6
Lively Member
It is possible to list down all SQL server by using SQL Enterprise Manager.
-
Sep 25th, 2000, 08:15 PM
#7
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|