473,465 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to find currentSchema from JDBC application

1 New Member
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 5059
skchonghk
6 New Member
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.