当知道远程服务器ip地址,数据库名称和用户名密码,怎样写连接控件的connectionstring才能连到远程服务器数据库,连接方必须安装sybase客户端吗?
解决方案 »
- 如果获取进程CPU占用率
- listvew简单操作
- 请教:delphi变量类型问题
- 怎样使用回车和TAB定位,参与有分,今天结帖
- 如何将SQL Server中的一个表用编写程序的方法转换成DBF文件格式?
- 移动集团领导洗澡记(爆笑讽刺妙文)(转自www.dayoo.com)
- 李维讲了分布式多层应用系统,就是没讲它的安装制作,不知有没有人会的
- 在C/S中用ADO组件如何实现并发控制
- 如何实现将数据库数据显示在有网格划分的listview中 并能实现排序
- 请大侠看看这个怎么实现比较好!读取文件的一部分。。。
- 关于数据导出的简单问题,马上给分,谢谢!
- 有什么好的网格控件可以实现分组显示并小计,DBGridEh可以吗?
另外转贴:
使用ADO 连 SYBASE 数据库时通过设置
ConnectionString=Provider=MSDASQL.1;Password=PWD;Persist Security Info=True;User ID=ID;Mode=ReadWrite;Extended Properties="DRIVER={Sybase System 11};UID=ID;PWD=PWD;;SRVR=SERVER1;DB=DB1"
连接 SYBASE 数据库 (这是通过ODBC连接,但不用设置ODBC数据源,SYBASE要装客户端)
数据浏览一切正常,但修改数据后更新时报“数据提供程序或其他服务返回E_FAIL状态”错误,不能修改数据。 后上网查询加在 ConnectionString 中增加 WorkArounds2=24 解决问题,现提供大家希望对某人能人帮助。下附原文:
用ADO连接 SYBASE 数据库进行数据更新时产生E_FAIL错误的处理:
Patch : Sybase ADO provider returned an E_FAIL status message
Document Number: 2462788MJ
Defect Number: 15004030
Category: Patch
Created: 01/13/2003 by Michael Jacobs
Last Modified: 08/04/2003 by Michael Jacobs
Product Information
Product: Connect for ADO
Version: 2.7.00
Operating System: Windows 32 bit
Database: Sybase
Analysis
When using the Connect for ADO 2.70 Sybase provider with a VB application to SELECT IMAGE or TEXT data, you may receive the error message: E_FAIL status.
Resolution
The initial resolution for this error message is to set: WorkArounds2=24 for the data source. Please try setting this in the "Options" tab of the data source under "Provider Options" or pass this setting in the connection string.
** NOTE ** Case sensitivity is very important when setting this workaround.
If setting this value does not resolve the issue, then contact DataDirect SupportLink to obtain build 2.70.0012 or higher of the Connect for ADO Sybase provider.
DataModule.Connection1.ConnectionString='Provider=MSDASQL.1;Password=PWD;Persist'
+ ' Security Info=True;User ID=ID;Mode=ReadWrite;Extended'
+ ' Properties="DRIVER='{Sybase System 11};UID=ID;PWD=PWD;;SRVR=SERVER1;DB=DB1"'