|
|
|
![]() |
|
|
Visual Case -
JDBCTM
Centre
Introduction Visual Case can reverse and forward engineer database schemas. To do this, the application needs to connect to your database in order to retrieve the information about existing tables, columns, foreign keys, etc. On Windows platforms, you can create an ODBC connection in the Windows Control Panel and connect from Visual Case to your database via ODBC. On other platforms, or if you prefer to not use ODBC, you can create a Visual Case JDBC connection profile to connect to your database. Instructions
on connecting to your database via JDBC can be found below. What is JDBC? Java's philosophy of write once, run anywhere is upheld with the creation of JDBC. Standing for Java Database Connectivity, JDBC allows for the access to any data source from any piece of Java code using driver implementing a standard Driver interface. JDBC is the standard for connecting from Java to a data source. The connection is made by loading a JDBC Driver that exposes a standard interface to the underlying data source. These drivers are available from many vendors and other sources and can connect to an ever-increasing number of data sources. Information on suggested drivers for use with Visual Case can be found below. Sun MicrosystemsTM
maintains a searchable database of JDBC drivers available here. What Makes up a JDBC Connection? User's of Visual Case can create JDBC connections to access their databases. These allow for the engineering of databases on virtually any platform. These connection profiles can be used and modified while running the database engineer. A Visual Case JDBC Connection is made up of the following:
Below are suggested drivers for Visual Case. Each driver has been tested with Visual Case and is available for free. You can use any driver you wish, however support may be limited for other drivers if you have problems connecting or engineering your database. Each driver requires the specification of locations to one or more jar (java archive) files. We suggest creating a directory under your Visual Case install called JDBCDrivers in which you can store your drivers. If the drivers are moved or deleted, you will not be able to connect to your database. Select your database type for the detailed settings of a JDBC connection profile. We suggest using the Microsoft SQL Server 2000 Driver for JDBC. On the Microsoft site, there is a FAQ about the driver, and it can be downloaded for free. You will find the download under Tools & Utilities. Sample connection information follows: URL: jdbc:Microsoft:sqlserver://MyServer:1433;DatabaseName=MyDB
Data Source: MyDB
Jar Files: msbase.jar;mssqlserver.jar;msutil.jar
Driver: com.microsoft.jdbc.sqlserver.SQLServerDriver
For SQL Server 6.5, 7, and 2000 you can use the JTDS open source driver. This driver is available for free and has been tested for use with Visual Case. The FAQ and download are available on the JTDS site. To use the driver, you should download the latest stable jar (archive) file. URL:jdbc:jtds:sqlserver://192.168.1.1:1433;DatabaseName=MyDB;User=MyName;Password=MyPassword
Data Source: MyDB
Jar File: jtds-0.5.1.jar
Driver: net.sourceforge.jtds.jdbc.Driver We recommend using the JDBC Driver available from Oracle for use with Oracle databases. The driver can be downloaded here. Ensure that you download the correct driver for your Oracle version. The Oracle driver is distributed as a zip file called classesXX.zip (where XX is the driver version). URL: jdbc:oracle:thin:@192.168.1.1:1521:MyDatabase
Data Source: MyDatabase
Jar File: classes12.zip
Driver: oracle.jdbc.driver.OracleDriver Sybase's JDBC driver is called jConnect for JDBC and is available for download here. You may already have the JConnect driver distributed with your Sybase installation. If the above download link is no longer valid, visit the downloads section of the Sybase site at www.sybase.com. URL: jdbc:sybase:Tds:192.168.1.1:2048
Data Source: MyDatabase
Jar File: jconn2.jar
Driver: com.sybase.jdbc2.jdbc.SybDriver
The MySQL JDBC driver is available at the MySQL site here. URL: jdbc:mysql://192.168.1.1:3306/MyDatabase
Data Source: MyDatabase
Jar File: mysql-connector-java-3.0.6-stable-bin,jar
Driver: org.gjt.mm.mysql.Driver
|
|