By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,514 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,514 IT Pros & Developers. It's quick & easy.

How to run db2commands in windows cmd prompt

P: 2

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
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 404
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+
P: 297

have a look at 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.