Advertisement
Guest User

Untitled

a guest
Feb 6th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. ITable newTable = (ITable) databaseController.getDatabase().getTables().get(i);
  2.  
  3. ConnectionInfo newConnectionInfo = new ConnectionInfo();
  4.  
  5. PropertyBag boPropertyBag1 = new PropertyBag();
  6.  
  7. boPropertyBag1.put("Server Type", "JDBC (JNDI)");
  8. boPropertyBag1.put("Database DLL", "crdb_jdbc.dll");
  9. boPropertyBag1.put("Database Class Name", "com.sybase.jdbc4.jdbc.SybDriver");
  10. boPropertyBag1.put("Use JDBC", "true");
  11. boPropertyBag1.put("Connection URL", "jdbc:sybase:Tds:" + serverAddress + ":2638");
  12.  
  13. newConnectionInfo.setAttributes(boPropertyBag1);
  14. newConnectionInfo.setUserName("CV");
  15. newConnectionInfo.setPassword("1929");
  16. newConnectionInfo.setKind(ConnectionInfoKind.SQL);
  17.  
  18. newTable.setConnectionInfo(newConnectionInfo);
  19.  
  20. databaseController.setTableLocation(databaseController.getDatabase().getTables().get(i), newTable);
  21.  
  22. boPropertyBag1.put("Server Type", "ODBC (ADO)");
  23. boPropertyBag1.put("Database DLL", "crdb_jdbc.dll");
  24. boPropertyBag1.put("Database Class Name", "ianywhere.ml.jdbcodbc.IDriver");
  25. boPropertyBag1.put("Use JDBC", "true");
  26. boPropertyBag1.put("Connection URL", "jdbc:odbc:DSN=DBRENT");
  27.  
  28. Unexpected ValueType: ValueType=[255]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement