maedowでDB2コマンド

emacsからDb2コマンドが使えるので、以下、設定。

.emacsに、以下を追加する。

(setq sql-db2-program "%DB2クライアントインストールDir%/sqllib/bin/db2cmd.exe")
(setq sql-db2-options '("-c" "-i" "-w" "db2" "-tv"))

起動は、以下

M-x sql-db2  

後は、shellが起動しているので

connect to %DBエイリアス% user %ユーザー名% using %パスワード%

で、DB接続。
→usingを使わないで、実行するとパスワードを聞かれるが、
 パスワードにエンターキーで応答出来なかった!!!