Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: sql default schema

$
0
0

Hello,

I have checked your proposal. The database is now specified as a JBOSS Datasource like this :

<?xml version="1.0" encoding="UTF-8"?>

<datasources xmlns="http://www.jboss.org/ironjacamar/schema">

    <datasource jta="false" jndi-name="java:jboss/jdbc/DB2LV1871_TYPE4"
        pool-name="java:jboss/jdbc/DB2LV1871_TYPE4" enabled="true" use-java-context="true" use-ccm="false">

        <connection-url>jdbc:db2://ryker.muc.lv1871.de:50003/vvsk1:currentSchema=test;</connection-url>

        <!-- this must me commented out. Otherwiese youl receive "Property cannot be overwritten by url" (Which is plausible)

        <connection-property name="currentSchema">test</connection-property>

        It is not working with this setting either -->


        <connection-property name="dateFormat">3</connection-property>
        <driver>com.ibm.db2.jcc</driver>
        <security>
            <user-name>XXXX</user-name>
            <password>XXXX</password>
        </security>

    </datasource>

</datasources>

Even with the Schema as a Property in the URL the SQL-Statements in Cobol are returning "-204" (Table or view does not exist).

I do have to hardcode in Cobol :

select bla

from test.myfinetable;

using just

select bla

from myfinetable;

Results in error code "-204"

Kind regards

Michael


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>