Re: other language descriptions for microsoft ODBC drivers
- From: cshashikanth@xxxxxxxxx
- Date: Fri, 06 Jul 2007 05:18:45 -0700
On Jul 5, 3:47 am, Bob Hairgrove <NoSpamPle...@xxxxxxxx> wrote:
On Wed, 04 Jul 2007 11:45:47 +0200, Bob Hairgrove
<NoSpamPle...@xxxxxxxx> wrote:
(c) When the user selects one of the drivers and creates a DSN,
establish a connection to this (if possible) and call SQLGetInfo on
the connection handle, passing SQL_DRIVER_HLIB as an argument. This
will return the name of the DLL used to implement the current driver.
Oops ... I left out one step ... you receive an instance handle of
the DLL from SQLGetInfo() which you can use to call the Win32 API
function GetModuleName(), and THAT you can compare with your list of
supported DLLs.
Sorry for the confusion.
--
Bob Hairgrove
NoSpamPle...@xxxxxxxx
Thank you for your reply.
I have considered all the options which you have mentioned. The reason
for me to go for hard coding the options is
a) The flat file drivers (like excel, access and text...) go to the
same dll.
b) when i use getInstalldrivers or some other functions to get info
about the drivers present on the system how to I filter the particular
driver to use.
Ex: If i have to make a text driver how do I filter the text driver
and In my case I am supporting only microsoft drivers so How do I
filter the microsoft text drivers out of the list.
I feel microsoft uses some particular variable or parameter which
differentiates the drivers from on another and I think I am missing it
as the driver description is not a 100% foolproof way of determining
the different drivers
csk
.
- References:
- other language descriptions for microsoft ODBC drivers
- From: cshashikanth
- Re: other language descriptions for microsoft ODBC drivers
- From: Bob Hairgrove
- Re: other language descriptions for microsoft ODBC drivers
- From: cshashikanth
- Re: other language descriptions for microsoft ODBC drivers
- From: Bob Hairgrove
- Re: other language descriptions for microsoft ODBC drivers
- From: Bob Hairgrove
- Re: other language descriptions for microsoft ODBC drivers
- From: Bob Hairgrove
- Re: other language descriptions for microsoft ODBC drivers
- From: Bob Hairgrove
- other language descriptions for microsoft ODBC drivers
- Prev by Date: Re: Very long to to insert a row in an Oracle linked server
- Next by Date: Re: Very long to to insert a row in an Oracle linked server
- Previous by thread: Re: other language descriptions for microsoft ODBC drivers
- Next by thread: Re: other language descriptions for microsoft ODBC drivers
- Index(es):
Relevant Pages
|
Loading