JAVA连接Progress数据库
经过一天的不懈努力终于成功了 !!!
废话就不多说了,上代码!
- package com.prog.test;
-
- import java.sql.Connection;
- import java.sql.DriverManager;
-
- public class ProgressTest {
-
- public static void main(String[] args)throws Exception {
-
- Class.forName("com.ddtek.jdbc.openedge.OpenEdgeDriver");
-
- String url = "jdbc:datadirect:openedge://localhost:8300;databaseName=MfgSys";
- Connection conn = DriverManager.getConnection(url, "sysprogress", "123456");
- conn.prepareStatement("select * from pub.test").executeQuery();
-
- }
-
- }
依赖包在数据库的bin文件夹下找到这3个包,加到项目里就可以啦!
base.jar、openedge.jar、util.jar