不安装BDE,只拷贝*.dll能运行客户端(SQL SERVER)的C/S程序吗?(100分)

  • 主题发起人 主题发起人 anna1
  • 开始时间 开始时间
如果用ADO连的话,在客户机上只需要配置ODBC,(
直接拷贝EXE文件就能用) ,但前提是客户上有IE4。
 
可以,用TClientDataSet,它不用BDE,而只要用MIDAS.DLL就可以了。
看帮助:
TClientDataSet is a dataset component designed to work without the connectivity support of the Borland Database Engine (BDE) or ActiveX Data Objects (ADO). Instead, it uses MIDAS.DLL, which is much smaller and simpler to install and configure. You don抰 use database or ADO connection components with client datasets, because there is no database connection.
Client datasets provide all the data access, editing, navigation, data constraint, and filtering support introduced by TDataset. However, the application that uses a client dataset must provide the mechanism by which the client dataset reads data and writes updates. Client datasets provide for this in one of the following ways:

Reading from and writing to a flat file accessed directly from a client dataset component. This is the mechanism used by flat-file database applications.
Reading from another dataset. Client datasets provide a variety of mechanisms for copying data from other datasets. These are described in Copying data from another dataset.
Using an IAppServer interface to obtain data from and post updates to a remote application server. This is the mechanism used by clients in a multi-tiered database application.

These mechanisms can be combined into a single application that employs the 揵riefcase model? Users take a snapshot of data, saving it to a flat-file so that they can work on it off-line. Later, the client application applies the changes from the local copy of data to the application server. The application server resolves them with the actual database, and returns errors to the client dataset for handling. For information building an application using the briefcase model, see Using the briefcase model.

The following topics provide more information about working with client datasets:

Working with data using a client dataset describes the support introduced by TClientDataSet for manipulating the data it stores in memory.
Using a client dataset with a data provider describes the properties, methods, and events that are specific to multi-tiered applications where a client dataset uses a provider component.
Using a client dataset with flat-file data describes the methods that support loading, saving, and creating flat-file data for a client dataset.
 
如果用ADO连SQL_SERVER的话,在客户机上可以不配置ODBC,只要生成connect string
就可以了。具体参见ADO 说明。我有中文的chm,可EMail给你.
用MIDAS 需改写成三层体系,麻烦一点。而ADO 基本上与BDE 无太大区别。但一定要记得
给DELPHI 打补丁。
另高手可直接调用sql_server 驱动程序,可惜我不是。
 
cxjrich大侠,能mail一份ADO的中文说明chm给我吗?
 
谢谢各位:
我的意思是不用ADO有没有办法??
 
cxjrich大侠,能mail一份ADO的中文说明chm给我吗?
mailto:terry_lzs@163.net
 
有!如果你能做到以下几点:
1。正确拷贝所有的文件到正确的目录。
2。正确添加注册表项目,以配置bde.
3。正确添加注册表项目,以配置sql server odbc.
 
PB 就可以做到只拷贝几个.DLL就安装了。
DELPHI呢??
 
同意lczhuohuo
 
;同意lczhuohuo,不过这样做还不如安装BDE呢.
 
ado有什么不好?
 
多人接受答案了。
 
后退
顶部