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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dump/Load db as background process at runtime?

Status
Not open for further replies.

LucieLastic

Programmer
May 9, 2001
1,694
GB
hi All

Is it possible to call the equivalent of a 'Dump database' and 'Load database' at runtime from an application. I've done this already with an Oracle db by starting a background process using the command Exp.exe at a command prompt. Can it be done for a Sybase db?

many thanks for help
lou

 
Hi

Please feel free to share with us. We may not have been able to help you but we are more than willing to learn from your solutions.

Thanks.


-=-=-=-=-=-=-=-=-
For ease of reading, any posted CODE should be wrapped by [ignore][COLOR][/COLOR] and
Code:
[/ignore] tags.

Ex:
Code:
SELECT 1 from sysobjects

 
hi JeanNiBee

I'm more than happy to tell you but it's really only code related and not different from doing it in isql.

I'm using Delphi 5 (a pascal development tool in case you're not familiar with it) and using one of it's DB components (a TQuery), just passed the Dump Database command straight to it and it processed it no problem. I was expecting it to fail as I was unable to call a Truncate Table command from it before. Only problem now, it returns straight away and I don't know when it's finished :eek:/ - I will have to check myself.

lou



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top