How to copy Database

seductive

Member
hello everyone. :)
i have a problem about copying the database
i used this code

OS-COMMAND SILENT VALUE("COPY " + x:\Original_database\*.* D:\Copy\Database).

my problem is... the database was up..
everytym i copy the database it has an .lk..
how do i remove the .lk?
or how do i stop the database?
the database is on the other pc.
my version i used is 10.1b

please help.. thanks inadvance..
 

Casper

ProgressTalk.com Moderator
Staff member
Re: HElp about copying...

stop the database:
Code:
proshut /path/to/db/<dbname> -by

and copy the database form one PC to the other.

or
make an online backup:
Code:
probkup online /path/to/db/<dbname> path/to/backup/<backupname>

verify backup:
Code:
prorest /path/to/db/<dbname> path/to/backup/<backupname> -vp
copy the database to your pc

restore db at your pc:
Code:
prorest /path/to/db/<dbname> path/to/backup/<backupname>

start the database with proserve or adminserver.

Second read up in the db administration guide.... (this should be first :))

http://www.psdn.com/library/servlet/KbServlet/download/4785-102-14132/dmadm.pdf

HTH,
Casper.
 

seductive

Member
thank you very much sir casper :blush1:

i have another question..
how do i apply that code in gui? in a procedure?..
i will put that code in a button..

can u give me a sample code?
im a newbie in progress..

tnx again sir casper..
mwaaaaaaaaaaah!
:blush::blush::blush::blush::blush::blush::blush::blush:
 

seductive

Member
help me please...

i have another question..
how do i apply that code in gui? in a procedure?..
i will put that code in a button..

can u give me a sample code?
im a newbie in progress..
 
Top