467,887 Members | 1,538 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,887 developers. It's quick & easy.

How to run db2commands in windows cmd prompt


Please help me, if theres a way we can execute DB2 commands directly from the windows cmd prompt window instead of executing those from DB2 CLP window.
I need to connect to a DB2 database and run a .sql script. I should have these commands in a batch file that should be executed from windows cmd prompt.

The cmds that wrk from DB2 CLP window are -
db2 connect to <database> user <user_name> using <passwd>
db2 -td! -vf <file_name>
Aug 29 '07 #1
  • viewed: 2899
2 Replies
Expert 256MB
Hi sudhakaryelleti,

As you have posted your question in the articles section, I am moving it into the forum where our experts can help.


Aug 30 '07 #2
Expert 100+

have a look at http://www.thescripts.com/forum/thread700063.html. I think this is the very same problem. Btw., are you working in the same company?


Aug 30 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Jonathan Fine | last post: by
8 posts views Thread by Bob Everland | last post: by
2 posts views Thread by AZSEEK | last post: by
11 posts views Thread by gslm | last post: by
4 posts views Thread by bkamrani | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.