Re: odbc on Ubuntu 11.10 Server

Bernard Moreton <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Organization TNAUK
Message-ID <[email protected]>
I think there's a problem in /usr/bin/osql, with the line defining ODBC_DIR:
--------------------------------------------------------------------------
# Establish ODBC prefix directory

ODBC_DIR=$(strings ${ISQL} | grep ^/ | grep -v elf | grep -v '\.so\.' | head -1 
| sed 's/lib$/etc/' )
--------------------------------------------------------------------------


If I comment out the above in a copy (~/odbc.sh), and add after them what is 
correct for my server:

ODBC_DIR=/etc

then I get sensible results.


Bernard Moreton
IT Director, National Talking Newspapers and Magazines (TNAUK)
Charity registered in the UK 293656

DDI: 01 435 869 316

On 20/01/2012 09:49, Bernard Moreton wrote:
> osql -S tnauk -U '<domain login name>' -P'<password>' [-I $HOME]
> both give:
> osql: error: no potential directory strings in "/usr/bin/isql"
> isql strings are:
> + /lib/ld-linux.so.2
>
>
> isql -v tnauk '<domain login name>''<password>'
> logs into the database ok.
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.