如果数据库连接发生更改,可在应用程序配置文件中修改连接字符串,而不是编辑源代码并重新编译应用程序。
If the database connection changes, you can modify the connection string in the application configuration file instead of editing the source code and recompiling your application.
Borland Data Provider中提供了一组组件(其前缀为Bdp),它们可以连接到任何支持的数据库上,可以只通过修改连接字符串来实现连接的切换。
The Borland data Provider comes with one set of components (with the Bdp prefix) that can connect to any of the supported databases, and can switch just by changing the connection string.
经过一些小的修改后(主要是针对连接字符串),此代码适合于任何 RDBMS。
With some relatively minor modifications (primarily to the connection string) this code could be adapted to suit any RDBMS.
应用推荐