我有我的freetds.conf
这样设置。 请注意,我专门设置了myawesomedb数据库:
[EXAMPLE_CONF] driver = /usr/lib64/libtdsodbc.so host = example.org database = myawesomedb port = 5150 tds version = 8.0 ;client charset = UTF-8
同样,我已经设置了odbc.ini
像这样:
[EXAMPLE_CONF] Description = SQL Server 2005 Driver = FreeTDS Database = myawesomedb Servername = EXAMPLE_CONF TDS_Version = 8.0
但是,当我使用TSQL连接,似乎忽略,我已经设置了数据库:
$ tsql -S EXAMPLE_CONF -U jordan locale is "en_US.UTF-8" locale charset is "UTF-8" Password: 1> select db_name() 2> go master
这是我想要发生的事情:
$ tsql -S EXAMPLE_CONF -U jordan locale is "en_US.UTF-8" locale charset is "UTF-8" Password: 1> select db_name() 2> go myawesomedb
我假设我只是缺lessconfiguration中的东西?
这里是相关的版本信息:
FreeTDS版本:0.64版本:11.el5.centos
unixODBC:版本:2.2.11发布:7.1