Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: issue with DBI and MS SQL SERVER

by blue_cowdawg (Monsignor)
on Sep 15, 2014 at 14:26 UTC ( #1100608=note: print w/replies, xml ) Need Help??

in reply to issue with DBI and MS SQL SERVER

It's been a really long time since I used the Sybase DBD driver but I seem to remember that you need to create an entry in an interfaces file to map between a logical server name and the physical server name. Not sure what you mean by "TDS configuration."

If I remember how the interfaces file is configured correctly it looks something like:

[BILLING] host = port = 1433 database = BILLING user = USER password = PASSWORD
Then you use the handle BILLING to connect with. Also if memory serves me correctly you have supply the path to the Sybase libraries
BEGIN{ $ENV{SYBASE}='/opt/sybase....handwaving here...'; } use DBI; my $dbh=DBI->connect('DBI:Sybase:server=BILLING') or die $DBI->errstr;
Hope this helps..

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; Blog: Warning: No political correctness allowed.

Replies are listed 'Best First'.
Re^2: issue with DBI and MS SQL SERVER
by DanBev (Scribe) on Sep 15, 2014 at 14:50 UTC
    blame on me! I'm configuring a freetds.conf file in /usr/local/freetds/etc/, but the script use the freetds.conf file in /usr/local/etc, due to a re-installation of libraries and various attempt to resolve my problem. Is not a beautiful presentation my first post here... :) Thank you for the reply!

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100608]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2023-03-24 04:13 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (60 votes). Check out past polls.