Board index » delphi » odbc driver list
Brad Irby
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Brad Irby
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
odbc driver list
Does anyone have a snippet of code that will give me a list of ODBC drivers
installed on the current machine? I need it for NT 4.0, but it would be nice for it to work on Win 95/98 also. thanks, |
Reddy Pall
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:odbc driver listBrad Irby wrote Quote>Does anyone have a snippet of code that will give me a list of ODBC drivers type { function return type } { generic data structures } const function SQLAllocEnv(var EnvironmentHandle: SQLHENV): function SQLDrivers (henv: SQLHENV; procedure GetDrivers(HENV : SQLHENV; List : TStrings); end; procedure TForm1.Button1Click(Sender: TObject); -- Reddy. |
Brad Irb
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:odbc driver listCool snippet! Worked right out of the box. Thanks. I mis-spoke in my message, though. What I need is something to give me a Also, where did you find documentation for all this? I've looked in the thanks again, QuoteReddy Palle <palle.re...@mpactsystems.com> wrote in message Quote
|
Reddy Pall
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:odbc driver listBrad Irby wrote Quote>What I need is something to give me a function SQLDataSources(EnvironmentHandle: SQLHENV; procedure GetDataSourceNames(HEnv : SQLHENV; List : TStrings); Replace the Button1click with the follwing : procedure TForm1.Button1Click(Sender: TObject); Quote>Also, where did you find documentation for all this? I've looked in the files manually yourself. If you have any C/C++ compiler you can look in the header files for Sql.h, SqlExt.h, Sqltypes.h. I don't have any specific book but you can read the "Inside ODBC" in MSDN if you have subsription. You can also browse the MSDN from MS website : http://msdn.microsoft.com/library/sdkdoc/dasdk/odp175gx.htm -- Reddy. |
2. Interbase ODBC driver not listed in the User DSN List
3. Interbase Driver disappears from the drivers list in IDAPI32.CFG file
4. telling the difference between BDE drivers and ODBC drivers
5. Odd Behaviour With MS Access SQL Links Driver vs ODBC Driver
6. Any disadvantage of using dbExpress ODBC driver over native DBMS driver
7. Difference Primary Key On MS Access when use Native Driver and ODBC Driver
8. Interbase ODBC Driver that Works with ODBC Administrator v.3.0
9. ODBC - problem adding new odbc drivers
10. The ODBC resource DLL is a different version than the ODBC driver