Skip to Content.
Sympa Menu

freetds - RE: [freetds] unixODBC failing to connect.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] unixODBC failing to connect.
  • Date: Tue, 15 Apr 2003 16:50:13 -0400

In trying to illustrate how the odbc.ini, freetds.conf, and network
interact, I wonder if this query is any help? Logically, this is what's
going on, and, after all, we *are* a database project.

1> create table #odbc( dsn varchar(20), Servername varchar(20))
2> create table #freetds( servername varchar(20), host varchar(20))
3> create table #network( hostname varchar(20), address varchar(20))
4> go
1> insert #odbc values( 'MyDSN', 'MyServer')
2> insert #freetds values( 'MyServer', 'box.foo.bar')
3> insert #network values( 'box.foo.bar', '10.80.48.54')
4> go
1> select dsn, servername, address
2> from #odbc o join #freetds f on Servername = servername
3> join #network n on host = hostname
4> go
dsn servername address
-------------------- -------------------- --------------------
MyDSN MyServer 10.80.48.54

(1 row affected)

--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.





Archive powered by MHonArc 2.6.24.

Top of Page