[freetds] Problem connecting to SQL server on linux

Jeff Dahl jddahl at micron.com
Mon Sep 25 13:18:57 EDT 2006


Frederik Teerlinck wrote:
> ret = SQLDriverConnect(connection, NULL, (SQLCHAR *)
> "DRIVER=FreeTDS;Address=<IPaddress of the SQL
> server>;UID=<login>;PWD=<pwd>;DATABASE=<DBname>;port=<port>;", SQL_NTS,
> outConnectionString, 1024, &len, SQL_DRIVER_NOPROMPT);
> ....
>   
Did you replace <IPaddress of the SQL server>, <login>, <pwd>, <DBname>, 
and <port> with the correct values 
(i.e."DRIVER=FreeTDS;Address=my.servers.ip.address;UID=myLogin;PWD=myPassword;DATABASE=myDatabaseName;port=myDatabasePort;" 
)?



More information about the FreeTDS mailing list