Skip to Content.
Sympa Menu

freetds - Re: [freetds] freetds / IBM UniVerse

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] freetds / IBM UniVerse
  • Date: Sat, 6 Jan 2007 10:43:21 -0500

Perry Taylor wrote:
> >From: "Lowden, James K"
> > > From: Perry Taylor
> > >
> > > $ /usr/local/freetds/bin/osql -S SQL1 -U userid -P password
> > > odbc.ini and odbcinst.ini should be in /lib/ld-linux.so.2 looking
> > > for DSN [SQL1] in /home/perryt/.odbc.ini
> > > found DSN [SQL1] in /home/perryt/.odbc.ini
> > > [SQL1] not found in "/home/perryt/.odbc.ini" looking for DSN [SQL1]
> > > in /lib/ld-linux.so.2/odbc.ini
> > > cannot read "/lib/ld-linux.so.2/odbc.ini"
> > > osql: error: unable to locate SQL1 in any odbc.ini
> > >
> >The script uses a heuristic to determine the directory name. What does
> >this say on your machine?
> >
> > $ ISQL=$(command -v isql)
> > $ strings ${ISQL} | grep ^/ | grep -v elf
> > /usr/local/lib
> >
> Here's what I get...
>
> $ ISQL=$(command -v isql)
> $ strings ${ISQL} | grep ^/ | grep -v elf
> /lib/ld-linux.so.2
> /usr/local/lib

I just committed a slightly smarter osql that should work on your machine.
Look for revision 1.4 in CVS. You don't need a snapshot tarball; you can
just fetch that one script from SourceForge.

I don't know that osql will help fix anthing on your machine (although it
might) but thank you for your help in making it more useful.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page