473,471 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

List Available Databases in VB6

2 New Member
Hi all.

Can someone give me code to List available Databases in a Combobox?
ComboBox is Called, cboDSNList

Please Help

Thanks.
Aug 6 '07 #1
3 3085
SanjuMtr
47 New Member
Hi all.

Can someone give me code to List available Databases in a Combobox?
ComboBox is Called, cboDSNList

Please Help

Thanks.
Hi,
your question is not clear to me.Kindly explain in details.
what do u mean by available data base?
Aug 6 '07 #2
Deon Smit
2 New Member
Hi,
your question is not clear to me.Kindly explain in details.
what do u mean by available data base?


Lets say my SQL Server has the Following Databases. A,B,C,D
So I want to be able to choose the database I want to Use in a combobox to enable the login. I have created the Login but can't seem to get the Combobox to Show Available SQL databases.

Thanks
Aug 7 '07 #3
pureenhanoi
175 New Member
Lets say my SQL Server has the Following Databases. A,B,C,D
So I want to be able to choose the database I want to Use in a combobox to enable the login. I have created the Login but can't seem to get the Combobox to Show Available SQL databases.

Thanks
When you create a new table from SQL server, the sever will insert the database name into table 'sysdatabase' in 'Master' database.
All that you need is create one connection to Master database (exist in all SQL-Server) first. And then, select * FROM 'sysdatabase' Table.
You can open the Master database, see the structure of 'sysdatabase'. This can help you selecting correct fields that need for your application.
Aug 7 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: _AnonCoward | last post by:
I have MSDE running on my system and I want to get a list of databases for that server programmatically. I'm using vb.net and I want to view, add, delete and modify databases on a server from...
7
by: expect | last post by:
I had no idea that my address was being broadcast to the world via comp.databases.postgresql.general I have no problem with having messages sent to the list go to the group. I do have a problem...
3
by: Amit | last post by:
Hi when I try to run LIST ACTIVE DATABASES AT DBPARTITIONNUM <partnum> or LIST ACTIVE DATABASES GLOBAL, I always get an error message. Does anyone know why? I'm on v8 fp 5 output : db2 => list...
11
by: Chuck | last post by:
Is there a command that will list all of the databases for a particular instance on the local machine, whether they are activated or not? If there is no such command, is there at least a way to...
6
by: Reza Alirezaei | last post by:
How can I have a list of all sql servers avaiable on our LAN populated in a DropDownList exacly like what we have when we want to specify Datasource in ADO.Net or wherever? Thanks
7
by: EvanK | last post by:
Is there a way to access a list of available sql servers in vb and make a dropdown list?
4
by: Andy M | last post by:
ALERT There is a person by the name of Mike Cox who's trying to turn this mailing list into a Big-8 newsgroup. Many of you know that this and most of the other postresql mailing lists are...
2
by: Troels Arvin | last post by:
Hello, I need a way to list an instance's databases, in a way which is easy to parse (I can't count on perl or similar scripting tools to be available everywhere). I know of the 'db2 list...
3
by: mandarkraftware | last post by:
Hi All, We have the following list of consultants currently available. Name / Job Title Summary Ramchandran/Java · 7+ years experience in the field of Software Development. · Expertise in...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.