Results 1 to 5 of 5
Dear Folks,
My query is
i have a.sql , b.sql , c.sql files which needs to be executed using "$ db2 -tvf a.sql"; "$ db2 -tvf b.sql"; "$db2 -tvf c.sql" ...
- 05-19-2010 #1Just Joined!
- Join Date
- May 2010
- Posts
- 4
[SOLVED] How to Execute Multiple Sql Files using Scripting
Dear Folks,
My query is
i have a.sql , b.sql , c.sql files which needs to be executed using "$ db2 -tvf a.sql"; "$ db2 -tvf b.sql"; "$db2 -tvf c.sql" , can some one suggest me a script with which i can execute all these sql files in a single shot.
- 05-19-2010 #2
- 05-19-2010 #3Just Joined!
- Join Date
- Jul 2008
- Posts
- 15
Hi!
in a shell you can try:
Code:find . -name *.sql -exec db2 -tvf {} \;
- 05-19-2010 #4Just Joined!
- Join Date
- May 2010
- Posts
- 4
thanks guys it worked out
- 05-19-2010 #5
you're welcome. please mark it as [SOLVED].


