打印本文 打印本文 关闭窗口 关闭窗口
Emacs 连接sql server 2000数据库
作者:武汉SEO闵涛  文章来源:敏韬网  点击数929  更新时间:2007/11/14 12:53:49  文章录入:mintao  责任编辑:mintao

读者对象:希望你对EMACS有一定了解,俺不打算解释什么是A-X之类的冬冬
用EMACS作为客户端连接SQL SERVER,我敢说EMACS是最好的命令行形式的客户端!
1。a-x sql-ms
输入用户名,密码,server地址,db名称
因为安装sql server 的时候用的是混合验证模式,所以有用户名和密码,如果是windows验证模式呢?则不太清楚
2。新建一个buffer,比如叫mysql,启用sql-mode(a-x sql-mode)
3。在my sql 中写一个sql语句:select * from T_TEST;  GO 然后c-c c-b,一定要写GO才会执行

PS:其他的一些经验:Roy Mathew先生的原话(zz):)
I don''''t use MS SQL, but the first thing I would check is to see if the
command line (isql?) works correctly. I would also get the latest version
of emacs and the latest version of sql-mode.el

Check the values of the variables `sql-ms-program''''.  Login uses the
variables `sql-user'''', `sql-password'''', `sql-database'''', and `sql-server''''
as defaults, if set.

Also try testing by typing a SQL command directly into the *SQL*
buffer; maybe your choice of SQL statement terminator is the problem.

====================
isql 是cmd下的连接sql server 2000的客户端,可以在cmd下敲isql命令使用,可以在MSDN中察看相关的使用方法。

打印本文 打印本文 关闭窗口 关闭窗口