This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running the sql files against database

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I am having a n number of sql files which i need to execute against database.

Is there any easier way to execute all those sql files against database.

something like bat file or java class to invoke.

Any pointer will be greatly appreciated.

The database is DB2
OS: windows
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parameswaran,
You can write a bat file that uses the db2 command line to run each file. I think the option is "-f" to run the sql in a file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic