× 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.



<snip>
TCP/IP is Enabled watching port 1433. Here is the con string I am
using:

prop = JDBC_Properties();
JDBC_setProp(prop: 'userName' : 'user');
JDBC_setProp(prop: 'password' : 'password');
JDBC_setProp(prop: 'databaseName' : 'DBName');

conn = JDBC_ConnProp('com.microsoft.sqlserver.jdbc.SQLServerDriver'
:'jdbc:microsoft:sqlserver://192.168.90.216:1433'
: prop);
</snip>

Your second parameter looks to be incorrect. Mines looks like.

conn = JDBC_Connect('com.microsoft.sqlserver.jdbc.SQLServerDriver':

'jdbc:sqlserver://srv14' :

wProperty );


I would try

conn = JDBC_ConnProp('com.microsoft.sqlserver.jdbc.SQLServerDriver'
:'jdbc:sqlserver://192.168.90.216'
: prop);

Also, you properties don't look right to me.

JDBC_setProp(prop: 'userName' : 'user');
JDBC_setProp(prop: 'password' : 'password');
JDBC_setProp(prop: 'databaseName' : 'DBName');

Try

JDBC_setProp(prop: 'user' : %Trim(userid);
JDBC_setProp(prop: 'password' : %Trim(password);
JDBC_setProp(prop: 'database' : 'DBName'); // Is this a real database
name?

Also, in Scott's jni_checkError routine, you might change the sleep time
to 30 seconds to allow it to display errors for more time.

ExceptionDescribe(JNIENV_P);
Sleep(30);


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.