|
Dear All,
I'm tryiong to connect a MS SQL database from RPG buy I'm getting following
error when it tries to make the connection
com.microsoft.sqlserver.jdbc.SQLServerException: : Unrecoverable error
at java.lang.Throwable.<init>(Throwable.java:195)
at java.sql.SQLException.<init>(SQLException.java:40)
at com.microsoft.sqlserver.jdbc.SQLServerException.<init>(Unknown
Source)
at
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown
Source)
at
com.microsoft.sqlserver.jdbc.SQLServerConnection.build70Logon(Unknown
Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(Unknown
Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown
Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown
Source)
bellow is the my code extracted from Scott Klement article
prop = JDBC_Properties();
JDBC_setProp(prop: 'userName' : 'sa');
JDBC_setProp(prop: 'password' : 'sdb#123');
JDBC_setProp(prop: 'databaseName' : 'testDB');
conn =
JDBC_ConnProp('com.microsoft.sqlserver.jdbc.SQLServerDriver'
:'jdbc:sqlserver://10.100.19.36:1433'
: prop );
JDBC_freeProp(prop);
bellow is my CLASSPATH
ADDENVVAR ENVVAR(CLASSPATH) VALUE('/mobbnk/java/sqljdbc.jar')
Im on V5R4, JRE 1.4 and using MS SQL Server JDBC Driver 1.0
Can some one guide me on this
--
Regards,
Chamara Withanachchi
IBM Certified Power System Expert
RPG Programmer
(owner of www.rpgiv.info)
WWW.RPGIV.INFO
Mob: +94 77 1678646
chamaraw@xxxxxxxxxx
i want to be future ready. i want control. i want an i.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.