How to install freetds in Linux?

后端 未结 3 1147
执笔经年
执笔经年 2020-12-05 03:03

I am trying to connect to MSSQL server from Ubuntu. I have installed freetds like suggested here.

However, when I try to configure /etc/odbc.ini and enter a

3条回答
  •  无人及你
    2020-12-05 03:48

    in freedts.conf

    [Server80]
            host = example.com
            port = 1433
            tds version = 8.0
            client charset = UTF-8
    

    in odbc.ini

    [MSSQL8]
    Driver          = FreeTDS
    Description     = Sybase JDBC Server
    Trace           = No
    Servername      = Server80
    Database        = DBNAME
    UID             = sa
    ClientCharset   = UTF-8
    

    in odbcinst.ini

    [FreeTDS]
    Description=v0.63 with protocol v8.0
    Driver=/usr/lib/i386-linux-gnu/odbc/libtdsodbc.so
    UsageCount=2
    

提交回复
热议问题