freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] Can connect with TDS, but not ODBC
- Date: Tue, 17 Feb 2004 16:24:24 -0500
> From: Casey Allen Shobe [mailto:cshobe AT osss.net]
> Sent: February 17, 2004 3:39 PM
>
> I can connect from perl using DBD::Sybase, and I can connect to a
> PostgreSQL database using either DBD::Pg -or- DBD::ODBC, so I
> know that
> UnixODBC is at least working to some extent. I've tried following the
> instructions on freetds.org to no avail.
...
> [root@core-devel root]# cat /usr/local/etc/odbcinst.ini
> [PostgreSQL]
> Driver = /usr/lib/libodbcpsql.so.2.0.0
> Setup = /usr/lib/libodbcpsqlS.so
>
> [TDS]
> Driver = /usr/local/freetds/lib/libtdsodbc.so
> Setup = /usr/local/lib/liboplodbcS.so
>
> [root@core-devel root]# cat /usr/local/etc/odbc.ini
> [ODBC Data Sources]
> smx_main = SMX Main Database
> adreports = AD Reports Database
...
> [adreports]
> Driver = /usr/local/freetds/lib/libtdsodbc.so
> Description = AD Reports Database
> Server = 172.16.0.216
^^^^^^^^^^^
May be OK, but I'd use the DNS name.
> Port = 1433
> TDS_Version = 8.0
> Database = adreports
> UID = sa
> Trace = No
freetds.conf won't be consulted, because you're using the "Server" attribute.
Does "tsql -H 172.16.0.216 -p 1433" (and providing the right
username+password) work?
What does unixODBC's isql report?
--jkl
-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.
If you, as an intended recipient of this commercial e-mail or advertisement,
would not like to receive further e-mail correspondence from the sender,
please "reply" to the sender indicating your wishes.
In the U.S.: 1345 Avenue of the Americas, New York, NY 10105
-
[freetds] Can connect with TDS, but not ODBC,
Casey Allen Shobe, 02/17/2004
- <Possible follow-up(s)>
-
RE: [freetds] Can connect with TDS, but not ODBC,
Lowden, James K, 02/17/2004
-
Re: [freetds] Can connect with TDS, but not ODBC,
Casey Allen Shobe, 02/17/2004
- Re: [freetds] Can connect with TDS, but not ODBC, James K. Lowden, 02/17/2004
-
Re: [freetds] Can connect with TDS, but not ODBC,
Casey Allen Shobe, 02/17/2004
Archive powered by MHonArc 2.6.24.