[unixODBC-support] SQLConnect and odbc.ini

Thinh Nguyen tnguyen at iii.com
Wed May 4 16:31:00 BST 2005


No wonder.... Many thanks, Martine. This tool will be really, really 
helpful!

Thinh

Martin J. Evans wrote:

>strace on osf is the streams trace utility and not what Eric referred to which
>is "strace - trace system calls and signals". You may be able to find a copy of
>strace (trace system calls) on freshmeat and build if for your machine.
>
>Martin
>--
>Martin J. Evans
>Easysoft Ltd, UK
>Development
>
>
>On 03-May-2005 Thinh Nguyen wrote:
>  
>
>>Thanks Martin, it is a very usefull command.
>>odbcinst -j does show the expected path for all the ini files, though. 
>>So I think I probably need to use strace, as Eric suggested, to verify 
>>that the driver actually reads from thoses files. But first, I have to 
>>learn how to use strace on DEC-Alpha; it doesn't output anything when I 
>>ran it :<
>>
>>Thanks for your help,
>>
>>Thinh
>>
>>Martin J. Evans wrote:
>>
>>    
>>
>>>On 03-May-2005 Eric Sharkey wrote:
>>> 
>>>
>>>      
>>>
>>>>>Thanks for your quick response. Because the driver I built always core 
>>>>>dumped when SQLConnect was called ( and I couldn't figure out why ), I 
>>>>>have been using an already compiled binary. For sure, it wasn't 
>>>>>configured to read the same ini file as the unixODBC library I built. So 
>>>>>that explains it. I'll try again to compile the driver myself to see if 
>>>>>I'll get lucky this time :)
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>If you want to know what ini files your already compiled driver is
>>>>trying to use, you can try to connect with isql running under strace
>>>>and look for attempts to open odbc.ini and odbcinst.ini and you should
>>>>be able to see what directories it's searching.
>>>>   
>>>>
>>>>        
>>>>
>>>odbcinst -j outputs this.
>>>
>>>Martin
>>>--
>>>Martin J. Evans
>>>Easysoft Ltd, UK
>>>Development
>>>      
>>>
>_______________________________________________
>unixODBC-support mailing list
>unixODBC-support at easysoft.com
>http://mail.easysoft.com/mailman/listinfo/unixodbc-support
>
>
>  
>





More information about the unixODBC-support mailing list