Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: DBI and FreeTDS Named Instances

by dreadpiratepeter (Priest)
on Aug 11, 2009 at 03:11 UTC ( #787473=note: print w/ replies, xml ) Need Help??


in reply to Re^2: DBI and FreeTDS Named Instances
in thread DBI and FreeTDS Named Instances

in that case the issue is going to be a configuration issue with freetds. It took me forever to get it right. remember that you have to configure the servers in freetds.conf and the dbs in the .odbc.conf file in the home directory of the user running the code.



-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."


Comment on Re^3: DBI and FreeTDS Named Instances
Re^4: DBI and FreeTDS Named Instances
by Anonymous Monk on Aug 11, 2009 at 14:29 UTC
    Ok, I think I understand the config files. It's unfortunate that this has become less portable because of that. Would you happen to have an example dsn that uses the config file? Or does freetds automatically look at the file if the dsn is missing information?

      I believe you need to setup the config files regardless of what you pass into the DSN

      You need an entry in the freetds.conf for each server and an entry in the .odbc.conf for each database



      -pete
      "Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
        Here is a copy of my config files.
        odbc.ini [ODBC Data Sources] VOIP [VOIP] Driver = FreeTDS Description = Connection to the new voip DB Trace = No Server = 127.0.0.1 Port = 4433 Database = databasename [Default] Driver = FreeTDS freetds.conf [VOIP] host = 127.0.0.1 instance = CRSSQL port = 4433 client charset = UTF-8 tds version = 8.0 odbcinst.ini [FreeTDS] Description = FreeTDS Driver Driver = /usr/local/lib/libtdsodbc.so Setup = /usr/lib/odbc/libtdsS.so

        Does anything look off?
Re^4: DBI and FreeTDS Named Instances
by Anonymous Monk on Aug 11, 2009 at 14:30 UTC
    ^ oops, didn't log in before I posted.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-08-20 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (125 votes), past polls