472,805 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

Connecting to DB2 from MS Query

I get the following error message when trying to connect to a host
database (OBCD connection) with "MS Query".

SQL0471N Invocation of routine "SYSIBM .SQLTABLES " failed due to
reason "00E7900C".
SQLSTATE=55023

I've found that this is a error with running the stored procedure
SQLTABLES, but I don't understand why?

This only occurs when trying to connect with MS QUERY.

If I try a db2cmd window, there is no problem connecting.
Using another application "AQT - Advanced Query Tool", there is also no
problem doing the connect.

Does anyone have a clue why this error only occurs when launching the
ms query tool ??

Regards Olaf

Nov 13 '06 #1
3 8085
Olaf:

Are you using MS Query by intself, or via Excel? At any rate, MS Query
is running the SP in order to use its result set to populate a drop
down list of tables for you to then choose from.

It appears that you're using DB2 on OS/390--an environment I'm not
familiar with--but perhaps this explanation of the error might lead you
to a solution:

00E7900C
Explanation:
SQL CALL statement or user-defined function invocation could not be
processed. The WLM application environment name specified for the
user-written routine is not defined or is currently not available for
DB2 use in the active WLM policy.

System action:
The SQL statement is rejected with SQLCODE -471 and this reason code.

Programmer response:
Use the -ALTER PROCEDURE or -ALTER FUNCTION command to update the WLM
ENVIRONMENT to specify an application environment that is defined and
active in the active WLM policy, or update the WLM policy to contain a
valid application environment name.

If the WLM policy definition is updated, use the MVS WLM VARY command
to activate this new definition.

If the WLM application environment is quiesced, use the MVS WLM VARY
APPLENV= applenv, RESUME command to activate the application
environment.

-- Jeff

ol*********@hotmail.com wrote:
I get the following error message when trying to connect to a host
database (OBCD connection) with "MS Query".

SQL0471N Invocation of routine "SYSIBM .SQLTABLES " failed due to
reason "00E7900C".
SQLSTATE=55023

I've found that this is a error with running the stored procedure
SQLTABLES, but I don't understand why?

This only occurs when trying to connect with MS QUERY.

If I try a db2cmd window, there is no problem connecting.
Using another application "AQT - Advanced Query Tool", there is also no
problem doing the connect.

Does anyone have a clue why this error only occurs when launching the
ms query tool ??

Regards Olaf
Nov 13 '06 #2
Thanks Jeff,

I am running MS Query by itself, and I am aware of the SP which is run
to show the list of tables. However I find it strange that MS Query is
not able to call this SP, while other querytools (AQT - Advanced Query
Tool) seem to run it just fine. AQT also displays a list of tables, and
I suspect that the same SP is used.

Sad to say, I'm not 'up and running' with knowledge of what WML
environment is. So I need to do a bit more study on that part.

Thanks!! :)

Nov 14 '06 #3
I agree with you--the SP should certainly run consistently across
tools. I hope you're able to resolve the issue!

ol*********@hotmail.com wrote:
Thanks Jeff,

I am running MS Query by itself, and I am aware of the SP which is run
to show the list of tables. However I find it strange that MS Query is
not able to call this SP, while other querytools (AQT - Advanced Query
Tool) seem to run it just fine. AQT also displays a list of tables, and
I suspect that the same SP is used.

Sad to say, I'm not 'up and running' with knowledge of what WML
environment is. So I need to do a bit more study on that part.

Thanks!! :)
Nov 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
2
by: Steve | last post by:
I normally use MySQL with PHP, but I'm delving into connecting to Access with ODBC (for a database that I already have set up at work), and I'm running into a couple of errors. I'm just trying to...
1
by: David Sorber via AccessMonster.com | last post by:
Hello, I've got two questions. Im writing an Access 2000 database to collect data from multiple Visual Foxpro Databases, total some figures, save the data into a table for archiving purposes, and...
9
by: noor.rahman | last post by:
I was wondering how it may be possible to query 2 MySQL databases using one query statement from PHP. For instance: SELECT database1.tableA.field1 UNION database2.tableB.field2. My concern...
3
by: Joe | last post by:
I'm connecting to an Oracle database and running a query which returns data. The query can be fairly long - 2-3 minutes. I have a label set up on the form which is invisible to begin with. I...
6
by: gerbski | last post by:
Hi all, I am relatively new to ADO, but up to now I got things working the way I wanted. But now I've run into somethng really annoying. I am working in MS Access. I am using an Access...
4
by: jonniethecodeprince | last post by:
Greetings all. I have a problem with PERL and SQL Server. I need to upload a database query to a web page using PERL and SQL Server. I have tried to do this myself but nothing displays on the...
3
by: akirekab | last post by:
I am tired, as I have done this or similar things many times, I am not seeing the problem here. I will run a query producing the following SQL SELECT tblInterviewRecord.FaceToFaceReasonID,...
3
by: BigZero | last post by:
hello i m new to php i m working on project that has interface with simple html and php i m thinking to use i got some problem with the connecting to DB here is the code for connecting db ...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.