× 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 don't know why you're getting an SQL0950... I would've expected an SQL0842, so everything I say in this message may be completely wrong... however:

SQL CLI can only have one connection active in an interactive job.. (Err... this restriction may only apply to the local database, I don't know?) but the point is, if you already have one active connection, and try to create another one, the second one will fail with SQL0842. Which sounds like it matches your description of the problem -- except for the SQL0950 part :)

The solution is to switch SQL CLI to "Server Mode". In server mode, the SQL CLI submits your SQL statements to an SQL server job instead of running them locally, and that makes it possible to have multiple connections.

There's an attribute SQL_ATTR_SERVER_MODE that you use to set this.

Not sure if this is a good answer or not, but maybe it'll point you in the right direction!



James Lampert wrote:
I have 2 programs that have the following SQLConnect call
SQL_SUCCESS = SQLConnect( hdbc:'*LOCAL'
:SQL_NTS :*null
:SQL_NTS :*null:SQL_NTS)
where "hdbc" is declared as "10I 0 inz"

Either program works fine by itself, but when I run both programs in the same job, only the SQLConnect in the first program executed works. The other program fails at that point, with an SQL0950:
Message . . . . : Relational database not in relational database directory.
Cause . . . . . : A request for relational database was made. However the relational database name was not found in the relational database directory.

Clearly, the two calls are fighting with each other.

Why, and what do I do about it?



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.