473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to find currentSchema from JDBC application

I want to use DatabaseMetadata to retrieve details of those stored procedures which belong to the current schema. How can I find out what is the current schema for an existing Connection?

Or alternatively is there any special syntax in the getProcedures method to limit the results to procedures belonging to the current schema?

Is there any clear documentation about the interpretation to be given to catalog and schema in DB2's JDBC implementation?

Thanks.

Pete
Dec 14 '06 #1
1 5054
Execute "values current schema" SQL statement with the connection. The resultset will have the current schema.
Mar 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Paul Rubin | last post by:
I'm writing a Windows program that needs to store some user files. The logical place to store them is in "Application Data", right? Is there a good way to find the correct location of that...
1
by: Adam Hearn | last post by:
Sorry if this difficult to understand but I'm pulling my hair out and could do with some good ideas please... I've developed an application which in .NET as a Windows service which is simply...
2
by: dotyet | last post by:
Hi Everyone, We recently migrated our database server from DB2 6.1 FP11 windows to 8.2 FP 8 windows. The migration was successful, without showing any signs of failure of any sort. We have a...
3
by: r_stringer66 | last post by:
Hi, I am trying to connect to a db2 database via a jdbc application and this is the following error I get: Exception : CLI0615E Error receiving from socket, server is not responding....
1
by: ravichoudhari | last post by:
how can find if any application is trying to open a file with particular extension (in vc++ 6)
1
by: krishnakant Mane | last post by:
hello, I have read about zope and found it very good. but right now I am a bit confused about one project I have just procured. it is supposed to be a simple 3 tear application. the front end...
0
chanderravi
by: chanderravi | last post by:
Hello Is there a way to find an application window reference which is running, with its partial name? I can get the application address using a API "FindWindow". It requires two parameters. One is...
1
by: vijayarl | last post by:
hi Everyone, I need to know how to check the jdbc version using classes12.jar am getting into this path :/../../../../oui/jlib/ then listed all files under this directory i did found...
2
by: arjunapalghuna | last post by:
Is it required to set path in Environment Variable for Oracle database to run a JDBC application? If it is, what is the path for Oracle 10g?
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.