×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I've cross posted this so I hope you're not annoyed if you get this twice.
I'm trying to connect to MS SQL from RPGLE using Scott Klement's JDBCR4 service program. (Thank you! Scott. Have enjoyed your sessions at the last two RPG/DB2 Summit Conferences in beautiful suburban Lombard Illinois) I've been fighting this since Friday and hoping someone can help me login to the MS SQL database. I can connect using Microsoft SQL Server management Studio using it's driver and windows authentication (no password supplied) so I have the authorization. Got past the JVM & JDBC mismatch issue yesterday morning by getting a later JDK installed on the iSeries (7.1). I run this before calling the RPGLE that trying to connect:
I call my program. JVM starts up with no error messages. Then I'm getting this:
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnosti
c.java:372)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2988)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2421)
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:632)
at net.sourceforge.jtds.jdbc.JtdsConnection.<init>(JtdsConnection.jav
a:371)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
Exception in thread "main" java.sql.SQLException: Login failed for user 'CFI\
JPRUCHA'.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnosti
c.java:372)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2988)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2421)
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:632)
at net.sourceforge.jtds.jdbc.JtdsConnection.<init>(JtdsConnection.jav
a:371)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
Login failed for user 'CFI\JPRUCHA'.
My application code, which calls JDBCR4 subprocedures, looks like this:
The port is what the firewall setup is here but I've tried 1433 also. I've been all over the various Midrange listservs and everywhere else seeing different methods of setting up the Connect string. Am I doing something wrong here? Can someone supply a working example?
TIA
Jack Prucha
Programming Team Supervisor
College Foundation, Inc.
919.835.2530
This email, including any documents, files, or previous email messages attached to it, has been sent from an email account of College Foundation Inc., (CFI) and may contain confidential, proprietary, or legally privileged information belonging to CFI. If you are not the intended recipient, any dissemination, distribution, or copying of this email or its attachments is strictly prohibited. If you have received this email in error, please immediately notify the sender by email and destroy the original email and any attachments.
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.