Adobe Dreamweaver CS3 Instrukcja Użytkownika Strona 530

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 529
DREAMWEAVER CS3
User Guide
523
Dreamweaver attempts to connect to the database. If the connection fails, double-check the connection parameters.
If the connection still fails, check the settings for the testing folder Dreamweaver uses to process dynamic pages.
See also
“Restrict database information displayed in Dreamweaver” on page 540
Obtaining a JDBC driver for your database” on page 522
“JDBC connection parameters” on page 521
“Troubleshooting database connections” on page 525
Connecting through an ODBC driver
Although JSP applications must communicate with databases through JDBC drivers, they can communicate through
ODBC drivers if you have a JDBC-ODBC bridge driver. The bridge driver acts as an interpreter between your JSP
application, which “speaks” JDBC, and your ODBC driver, which “speaks” ODBC. This channel of communication
lets your JSP application communicate with the database.
This kind of connection offers two advantages for Windows users. First, you can use the free ODBC drivers from
Microsoft. Second, you can use a DSN to simplify the task of creating the connection.
The following requirements must be met to connect through an ODBC driver:
Your JSP application server must be running on a Windows computer.
An ODBC driver for your database must be installed on the Windows computer running the application server.
A JDBC-ODBC bridge driver must be installed on the Windows computer running the application server.
If you meet these requirements, you can connect through an ODBC driver.
Checking for the ODBC driver
Make sure an ODBC driver for your database is installed on the Windows computer running the JSP application
server. If an appropriate driver is not installed, you can download and install the Microsoft Data Access Components
(MDAC) 2.5 and 2.7 packages on the computer running the JSP application server. You can download MDAC for
free from the Microsoft website at http://msdn.microsoft.com/data/mdac/downloads/. These packages contain the
latest ODBC drivers from Microsoft.
Note: Install the MDAC 2.5 package before installing MDAC 2.7.
Installing the Sun JDBC-ODBC Bridge driver
To connect through an ODBC driver, you must install the Sun JDBC-ODBC Bridge driver on the Windows
computer running the JSP application server. The driver comes with the Sun Java 2 SDK, Standard Edition, for
Windows.
TofindoutifyoualreadyhavetheJava2SDKwiththedriver,checkyourharddiskforanyofthefollowingfolders:
jdk1.2, jdk1.3, or j2sdk1.4.
IfyoudonthavetheSDK,youcandownloadandinstallitfromtheSunwebsiteathttp://java.sun.com/j2se/,which
also installs the driver.
September 4, 2007
Przeglądanie stron 529
1 2 ... 525 526 527 528 529 530 531 532 533 534 535 ... 737 738

Komentarze do niniejszej Instrukcji

Brak uwag