Emacs 连接sql server 2000数据库

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值