中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 数据库开发 > 数据库综合
Emacs 连接sql server 2000数据库
作者:未知 时间:2004-10-04 12:12 出处:Blog 责编:chinaitpower
              摘要:暂无

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

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有