dbTalk Databases Forums  

Registry free DB Connection.

comp.databases comp.databases


Discuss Registry free DB Connection. in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Lee Fesperman
 
Posts: n/a

Default Re: Registry free DB Connection. - 10-23-2008 , 01:16 AM






oakulkarni wrote:
Quote:
Hi,

My application needs database. We use SQLConnect to connect to
database through DSN. The SQLConnect uses the registry to look the DSN
entries. What i want to do is the, connect to the DB without registry.
We ship the database connection drivers with our product. I even tried
to use the SQLDriverConnect, in this i had provided all the connection
paramters but still it takes the Driver info from registry. Is it
possible to provide the whole path of the driver in the connection
string while connecting e.g. SQLDriverConnect(...,DRIVER="...../
odbc.dll,.....) I tried FileDSN but that also not working. FileDSN is
not actually registry free connection. It also looks for the DB
Driver in the registry.
Please, if anybody is having any info please let me know.
ODBC does not support "registry free" connections. There are two types
of ODBC registries: one for DSNs (Data Source Names) and one for
Drivers. You can have a DSN-less connection, but you must specify a
registered driver name instead. You do this with SQLDriverConnect()
and the DRIVER property. You can't use the path to the driver .dll to
connect.

--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
================================================== ============
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)


Reply With Quote
  #12  
Old   
Lee Fesperman
 
Posts: n/a

Default Re: Registry free DB Connection. - 10-23-2008 , 01:16 AM






oakulkarni wrote:
Quote:
Hi,

My application needs database. We use SQLConnect to connect to
database through DSN. The SQLConnect uses the registry to look the DSN
entries. What i want to do is the, connect to the DB without registry.
We ship the database connection drivers with our product. I even tried
to use the SQLDriverConnect, in this i had provided all the connection
paramters but still it takes the Driver info from registry. Is it
possible to provide the whole path of the driver in the connection
string while connecting e.g. SQLDriverConnect(...,DRIVER="...../
odbc.dll,.....) I tried FileDSN but that also not working. FileDSN is
not actually registry free connection. It also looks for the DB
Driver in the registry.
Please, if anybody is having any info please let me know.
ODBC does not support "registry free" connections. There are two types
of ODBC registries: one for DSNs (Data Source Names) and one for
Drivers. You can have a DSN-less connection, but you must specify a
registered driver name instead. You do this with SQLDriverConnect()
and the DRIVER property. You can't use the path to the driver .dll to
connect.

--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
================================================== ============
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)


Reply With Quote
  #13  
Old   
Lee Fesperman
 
Posts: n/a

Default Re: Registry free DB Connection. - 10-23-2008 , 01:16 AM



oakulkarni wrote:
Quote:
Hi,

My application needs database. We use SQLConnect to connect to
database through DSN. The SQLConnect uses the registry to look the DSN
entries. What i want to do is the, connect to the DB without registry.
We ship the database connection drivers with our product. I even tried
to use the SQLDriverConnect, in this i had provided all the connection
paramters but still it takes the Driver info from registry. Is it
possible to provide the whole path of the driver in the connection
string while connecting e.g. SQLDriverConnect(...,DRIVER="...../
odbc.dll,.....) I tried FileDSN but that also not working. FileDSN is
not actually registry free connection. It also looks for the DB
Driver in the registry.
Please, if anybody is having any info please let me know.
ODBC does not support "registry free" connections. There are two types
of ODBC registries: one for DSNs (Data Source Names) and one for
Drivers. You can have a DSN-less connection, but you must specify a
registered driver name instead. You do this with SQLDriverConnect()
and the DRIVER property. You can't use the path to the driver .dll to
connect.

--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
================================================== ============
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.