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

Hi,

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
Share:
2 Replies
Purple
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.

Purple

Moderator
Aug 30 '07 #2
docdiesel
Expert 100+
Hi,

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?

Regards,

Bernd
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.