Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB2 Help Required (Backup)

Status
Not open for further replies.

ddprasad

Programmer
Jul 29, 2003
7
IN
For Quite a Few Days I am trying to develop an interactive backup interface using both java swing and also on Visual C++. Both of them stuck at a point where I am trying to execute SQL backup command.

The following command works fine from Command Center:

backup database ddp to c:\testdb2\dp

But When the same command is executed through
ExecuteSQL of CDatabase in Visual C++ and execute() of Statement in Java Swing I Get the following error message:

java.sql.SQLException: [IBM][CLI Driver][DB2/NT] SQL0007N The character "\" following "P DATABASE DDP TO c:" is not valid. SQLSTATE=42601

I would be thankful if any one can sort out the problem.
 
I suspect nobody in this forum will be able to help you. Have you tried the DB2 forum?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top