[freetds] How to make a connection without freetds.conf

James K. Lowden jklowden at freetds.org
Fri Jul 13 16:08:52 EDT 2007


Alexandre Gazola wrote:
> I checked the DNS-less section of the user guide on the site, and
> changed my connection string to the following:
> 
> "DRIVER=FreeTDS;SERVER=forte;UID=teste;PWD=teste;DATABASE=GAZOLA_UNBA_R
> ;TDS_Version=7.0;Port=1695;"
> 
> but that DIDN'T WORK.


1.  Make sure you're using SQLDriverConnect.  
2.  Try export TDSDUMP=stdout and see if it's connecting to your host
correctly.  The log will show your server hostname and port (and probably
the TDS version). If those are right, it's an authentication issue.  

--jkl



More information about the FreeTDS mailing list