Skip to Content.
Sympa Menu

freetds - RE: [freetds] Perl with FreeTDS driver

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Russell Kroboth <rkroboth AT visitraleigh.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Perl with FreeTDS driver
  • Date: Tue, 25 Feb 2003 16:17:24 -0500

Since I used the rpm to set up FreeTDS and the FreeTDS driver, the directory
/usr/local/freetds does not exist. Therefore I am unable to follow the
instructions in the manuals, such as

$ export SYBASE=/usr/local/freetds

Where is this directory considered to be in my case?

Thanks!


> -----Original Message-----
> From: Russell Kroboth [mailto:rkroboth AT visitraleigh.com]
> Sent: Tuesday, February 25, 2003 3:21 PM
> To: 'freetds AT lists.ibiblio.org'
> Subject: [freetds] Perl with FreeTDS driver
>
>
> Ok, I have my first question.. Clarification on this page:
> http://www.freetds.org/userguide/x1576.htm
>
> I hope to use DBD::ODBC with my newly installed FreeTDS ODBC
> driver, and
> write perl scripts which can use this setup.
> My connection string in my Perl script is going to be:
> my $dsn =
> "driver=TDS;Server=192.168.1.54;database=Partners;uid=testuser
> ;pwd=password1
> ;TDS_Version=7.0;Port=1433";
> So when I am getting ready to install DBD::ODBC module, I set the
> environment variables, the help page says here is what to do:
> $ export SYBASE=/usr/local/freetds
> $ export ODBCHOME=/usr/local
>
> My question is:
> 1) using the ENV variable named "SYBASE" is throwing me off. Is that
> something I need, since I'm using the FreeTDS Driver with a
> MS SQL database?
> Is this thing named "SYBASE" there in case I wanted to use
> the DBD::Sybase
> method, and can I leave it out?
>
> 2) should ODBC home be the directory where lib/libodbc.so and
> lib/libodbcinst.so reside? (/usr in my case)
>
>
> 3) In my case, it's not clear what DBI_DSN should be. Any suggestions?
>
>
> Thanks!
> Rusty Kroboth
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>




Archive powered by MHonArc 2.6.24.

Top of Page