hey guys,
Can u pls tell me what is the use of Java Stored Procedure.
Basically i have got a requirment that i need to create stored procedure which should work in oracle or db2 or sql2000. can i write a java stored procedure which is independent of any database.If any kind of help just mail me on
kiranrkilledar at rediffmail dot com
Its very urgent.
Thankx a lot.
bye
-kiran
-
Problem in Java Stored Procedure (VERY URGENT) (5 messages)
- Posted by: kiran killedar
- Posted on: March 31 2001 06:16 EST
Threaded Messages (5)
- Problem in Java Stored Procedure (VERY URGENT) by karthik sa on April 02 2001 11:53 EDT
- Problem in Java Stored Procedure (VERY URGENT) by fca fca on April 03 2001 09:51 EDT
- Problem in Java Stored Procedure (VERY URGENT) by Jose Ramon Diaz on April 03 2001 10:50 EDT
- Problem in Java Stored Procedure (VERY URGENT) by Anil Sequeira on April 04 2001 10:13 EDT
- Problem in Java Stored Procedure (VERY URGENT) by Jose Ramon Diaz on April 03 2001 10:50 EDT
- Problem in Java Stored Procedure (VERY URGENT) by mahesh nangare on April 05 2001 07:05 EDT
-
Problem in Java Stored Procedure (VERY URGENT)[ Go to top ]
- Posted by: karthik sa
- Posted on: April 02 2001 11:53 EDT
- in response to kiran killedar
hai,
as far as i know u cant write db independant code -
Problem in Java Stored Procedure (VERY URGENT)[ Go to top ]
- Posted by: fca fca
- Posted on: April 03 2001 09:51 EDT
- in response to kiran killedar
You cannot write a single stored procedure to work on different databases. The languages are not supported -
Problem in Java Stored Procedure (VERY URGENT)[ Go to top ]
- Posted by: Jose Ramon Diaz
- Posted on: April 03 2001 10:50 EDT
- in response to fca fca
I undertand the only thing should change is the driver JDBC to the database, but , theorically, the JAVA classes should be the same.
Maybe the way you make the connection with the database may change.
Jose R. -
Problem in Java Stored Procedure (VERY URGENT)[ Go to top ]
- Posted by: Anil Sequeira
- Posted on: April 04 2001 10:13 EDT
- in response to Jose Ramon Diaz
Obviously, you cannot connect to all the databases at the same time. But what you can do is create a properties file where you can specify the database driver name, the driver url, username, password, etc.
Now, you can read from this properties file when you want to connect to the database. All you need to do when changing the database is change the driver name and the database url in the properties file. -
Problem in Java Stored Procedure (VERY URGENT)[ Go to top ]
- Posted by: mahesh nangare
- Posted on: April 05 2001 07:05 EDT
- in response to kiran killedar
Hello Kiran
I think it is not possible to have same proce which will
run on oracle and SQL Server .
So u will have to write 2 diff proce.
But U can design some classes which will check for the database and then execute appropriate proce in preparestatement.
All the best
Mahesh