[unixODBC-support] Problem connecting to MSSQL server

Pretty Woman redrose_w at yahoo.com
Mon Sep 10 12:18:56 BST 2007


I have a problem connecting to a mssql server. 

I installed FreeTLS and UNIXodbc and tested their
connection to the mssql server and it worked at first.
But when I installed Freeradius it loads the odbc
driver but it does not connect to the database.

Please tell me what could be the problem ?

I get the following errors :

radiusd -X reads:

rlm_sql (sql): Driver rlm_sql_unixodbc (module
rlm_sql_unixodbc) loaded and linked
rlm_sql (sql): Attempting to connect to
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_unixodbc
rlm_sql_unixodbc: Connection failed IM002
[unixODBC][Driver Manager]Data source name not found,
and no default driver specified
rlm_sql (sql): Failed to connect DB handle #0

Here is the working connection to mssql server :

[root at fedora5 ~]# tsql -H [IP-OF-MSSQL-SERVER] -p 1433
locale is "en_US.UTF-8"
locale charset is "UTF-8"
1> quit

[root at fedora5 ~]# isql [IP-OF-MSSQL-SERVER] USERNAME
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
SQL> quit


Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 

More information about the unixODBC-support mailing list