Emacs 连接sql server 2000数据库

王朝mssql·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

读者对象:希望你对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中察看相关的使用方法。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航