Re: Urgent ! Please Help !
Posted in 1997
Is your .odbc.ini file in your home directory? If not, then you need to either place the .odbc.ini in your home directory or set the ODBC_INI environment variable to the location. CLI will hang in SQLCONNECT if it cannot find the .odbc.ini file. - Greg Peries, Chaminda wrote: > <snip> > > I am running a sample application that uses SQLAllocEnv () to get a > environment handle - it works. > > SQLAllocConnect () to get a connection handle - it works > > SQLConnect (connection_handle, data_source_name, userid, password) > THIS FAILS. !! > > my INFORMIXDIR is set to /work/informix > > here I have a file called .odbc.ini - which has the Data Source > Name defined in it. There is also an odbcinst.ini file. I believe the > entries for the DSN in these files are correct. > <snip> > -- Greg Krasnow HNC Software Inc. Software Engineer/Payment Systems Email: gak@hnc.com Phone: 619.799.8341 Fax: 619.546.9464