1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ODBC, unixODBC, FreeTDS

Posted at
  1. ODBC インターフェース API --> 仕様/規格
  2. unixODBC ODBCドライバマネージャ --> 実装
  3. FreeTDS SQL Server/SyBase のデータベースドライバ --> 実装

TDSとはなぬものだ?

Tabular DataStream プロトコル

FreeTDSはTDSプロトコルを実装したライブラリ。

PythonからSQL Serverを利用する場合

  1. pymssql

    pymssql -> FreeTDS -> SQL Server DataBase

  2. pyodbc

    pyodbc -> unixODBC -> FreeTDS -> SQL Server DataBase

FreeTDSはコネクションプールできる。
/etc/pool.conf を置いておく。

参考リンク

ばぁばのODBC実験室 UNIX での ODBC 活用
http://www.amy.hi-ho.ne.jp/jbaba/unix/unixodbc.htm

FreeTDS User Guide
http://freetds.schemamania.org/userguide/

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?