Connecting to Sybase:
driverclassname = "com.sybase.jdbc2.jdbc.SybDriver";
dbprefix += "sybase:";
System.out.println("Loading jdbc driver: " + driverclassname);
Class.forName(driverclassname);
DBURL= "jdbc:sybase:
DBURL = dbprefix + DBURL;
After that get the useid and password from user :
con = DriverManager.getConnection(DBURL, userid, password);
---------------------------------Connection Successful-------------------------------
No comments:
Post a Comment