MACROMEDIA COLDFUSION 4.5-ADMINISTRING COLDFUSION SERVER Technical Information Page 39

  • Download
  • Add to my manuals
  • Print
  • Page
    / 174
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 38
34
Last updated 2/21/2012
Chapter 4: Data Source Management
A data source is a complete database configuration that uses a JDBC driver to communicate with a specific database.
In Adobe ColdFusion, you configure a data source for each database that you want to use. After you configure a data
source, ColdFusion can then communicate with that data source through JDBC.
For basic information on data sources and connecting to databases, click Resources in the ColdFusion Administrator,
and then select Getting Started Experience.
About JDBC
JDBC is a Java Application Programming Interface (API) that you use to execute SQL statements. JDBC enables an
application, such as ColdFusion, to interact with various database management systems (DBMSs), without using
interfaces that are database- and platform-specific.
The following table describes the four types of JDBC drivers:
Type Name Description
1 JDBC-ODBC bridge Translates JDBC calls to ODBC calls, and sends them to the ODBC driver.
Advantages: Allows access to many different databases.
Disadvantages: The ODBC driver, and possibly the client database libraries, must reside on the
ColdFusion server computer. Performance is slower than other JDBC driver types.
Adobe does not recommend this driver type unless your application requires DBMS-specific
features.
2 Native-API/partly Java
driver
Converts JDBC calls to database-specific calls.
Advantages: Better performance than Type 1 driver.
Disadvantages: The client database libraries of the vendor must reside on the same computer as
ColdFusion.
ColdFusion includes a Type 2 driver for use with Microsoft Access Unicode databases.
3 JDBC-Net pure Java driver Translates JDBC calls to the middle-tier server, which then translates the request to the database-
specific native-connectivity interface.
Advantages: The database libraries of vendors are not required client computer. Can be tailored for
small size (faster loading).
Disadvantages: Database-specific code must be executed in the middle tier.
ColdFusion includes an ODBC socket Type 3 driver for use with Microsoft Access databases and
ODBC data sources.
4 Native-protocol/all-Java
driver
Converts JDBC calls to the network protocol used directly by the database.
Advantages: Fast performance. No special software needed on the computer on which you run
ColdFusion.
Disadvantages: Many of these protocols are proprietary, requiring a different driver for each
database.
ColdFusion includes Type 4 drivers for many DBMSs; however, not all DBMSs are supported in
ColdFusion Standard Edition.
Page view 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 173 174

Comments to this Manuals

No comments