This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Directly run SQL Script file using JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Directly run SQL Script file using JDBC" Watch "Directly run SQL Script file using JDBC" New topic
Author

Directly run SQL Script file using JDBC

L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi,

Is there anyway I can run .sql script file ( which is present in my application directory ) directly using JDBC API on to Oracle Database without manually running the sql file in SQL * Plus tool.

Cheers.


SCJP, SCWCD
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

Hi LG,
Did you not search the other posts in this forum?
Did you not see this one:
http://www.coderanch.com/t/298527/JDBC/java/executing-PL-SQL-through-JDBC
Does it not help you?
Good Luck,
Avi.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Directly run SQL Script file using JDBC
 
Similar Threads
Execute .sql file using java
Is it possible to directly run SQL Script file using JDBC
SqlPlus question
Restore problem
Run .sql file using JDBC or any java API