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 run sql 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 "run sql file using JDBC" Watch "run sql file using JDBC" New topic
Author

run sql file using JDBC

Tusshar Fasate
Ranch Hand

Joined: May 21, 2008
Posts: 81
I have one sql file which contains number of sql commands like create table,inserting data into table ,select queries like.
i want to run this file on sql server and i should get output of this file also.
How can i do this?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37884
    
  22
Have you been through the Java™ Tutorials? That is a good section.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: run sql file using JDBC
 
Similar Threads
please need help on sql
Terminated Insert.
Invoking SQL Loader from Java
Convertion of xml file to sql file.
running sql script file from java