473,387 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ODBC Data Sources

Hi All,

Is there a method that I can call to return a list of available database
drivers?

If so, is there then a way to get the list of fields that are required for
those the database drivers?

L.
Jul 21 '05 #1
5 1782
Landley,

If I understood you well, than use most people this very famous webpage.

www.connectionstring.com

Cor
Jul 21 '05 #2
Thanks for your reply.

I cannot see what I am looking for here.

All I am after is some sample .NET code (C# or VB.NET) illustrating how to
retrieve a list of ODBC database drivers available on the local machine.
This is the list that you can see in the ODBC Data Source Administrator
(odbcad32) dialog.

I am then after some sample code to ascertain what parameters each driver
requires in order to create a valid connection.

Any ideas?

L.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OI**************@TK2MSFTNGP10.phx.gbl...
Landley,

If I understood you well, than use most people this very famous webpage.

www.connectionstring.com

Cor

Jul 22 '05 #3
The URL won't help much--it just shows examples of typical (and some pretty
bizarre) connectionstrings.
I've seen (new) ADO.NET 2.0 factory classes to generate a list of providers
in ADO.NET, but I have never seen anything but (widely) scattered documents
that tell what parameters the connection strings take.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"Landley" <ne**@creations-software.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Thanks for your reply.

I cannot see what I am looking for here.

All I am after is some sample .NET code (C# or VB.NET) illustrating how to
retrieve a list of ODBC database drivers available on the local machine.
This is the list that you can see in the ODBC Data Source Administrator
(odbcad32) dialog.

I am then after some sample code to ascertain what parameters each driver
requires in order to create a valid connection.

Any ideas?

L.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OI**************@TK2MSFTNGP10.phx.gbl...
Landley,

If I understood you well, than use most people this very famous webpage.

www.connectionstring.com

Cor


Jul 22 '05 #4
Bill,
but I have never seen anything but (widely) scattered documents that tell
what parameters the connection strings take.

Maybe something nice for your pages, I think that you have than have a very
much visited site and that this connection string site loose.

I have searched as well often for that.

Just an idea and it is free.

:-)))

Cor
Jul 22 '05 #5
On Fri, 24 Jun 2005 23:24:56 +0100, "Landley" <ne**@creations-software.co.uk> wrote:

¤ Hi All,
¤
¤ Is there a method that I can call to return a list of available database
¤ drivers?
¤

You would probably need to enumerate the following registry entry:

HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers

¤ If so, is there then a way to get the list of fields that are required for
¤ those the database drivers?

I don't believe this information is stored anywhere.
Paul
~~~~
Microsoft MVP (Visual Basic)
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: SkunkDave | last post by:
Is there a script anyone has that will automate the addition of an access database to the OBDC datasources in control panel. Thanks
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
3
by: Lauren Quantrell | last post by:
Maybe a dumb question - I'm new to ODBC. How do I install an Access ..mde file on a user's workstation and create the ODBC connection to the backend SQL Server database without having to go through...
2
by: Michael | last post by:
High there everyone, I have inherited a database with an odbc table (linking to an oracle database) , we have recently updated our operating environment to windows 2000 (access 2000). since...
5
by: Alec | last post by:
Hi All, I am currently trying to link in Access 97 to a table in a MSSQL 7 server. Initially the link is fine, however, when I close the access database and re-open it from the same network...
1
by: Randall Perry | last post by:
I've got an app written with Access XP that was deployed 2 years ago using a PostgreSQL backend database through an internet connection. Recently a client upgraded to XP Service Pack 2. After the...
1
by: tommydkat | last post by:
Hi! We've switched from Developer Studio 6.0 to Visual Studio .net 2003. Our application compiles fine with Visual Studio .net 2003 but when it runs, it uses the Microsoft ODBC driver as is shown...
2
by: polpe | last post by:
Hello, i have a filemaker server 5.5 with some shared files. I don't understand how use ODBC with these files to import a database in Access. Can anyone help me? Polpe from Italy
2
by: Dale Sampson | last post by:
My app uses an ODBC connection for a .mdb file. I want the app to create the source if it does not already exist (I copy a blank .mdb file to the users data store if it doesn't exist). I see how...
4
by: Michael Kintner | last post by:
How do I create and ODBC connection enbedded inside a link???? The upsizing wizard worked great however when it created the ODBC connection somehow it enbeddeds the link and does not add to USER...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.