Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a copy of a DBC during runtime
Message
From
24/05/2008 14:34:00
 
 
To
24/05/2008 10:58:11
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01319312
Message ID:
01319364
Views:
32
I'm glad you got it working. Are you sure that windows scripting will never be disabled for security purposes? I ran into that situation a few years ago and had to switch every thing to api calls because of it. Unless I am mistaken and you are not using windows scripting... or your company is fine with it.



>Thanks Tracy. The approach Olaf suggested best suits what I needed.
>
>Alex
>
>>You might need to look at full open-file server based backup options like Acronis (I've used Pallindrome and a few others over the years but not with much success. They seem to work fine with SQL Server and Oracle but not VFP databases consistently). I did find this:
>>
>>http://www.handybackup.net/foxpro-backup.shtml
>>
>>which claims to backup open foxpro databases but I've never used it.
>>
>>
>>>I need to make a copy of a database (DBC/DBT/DCX) to another directory at runtime.
>>>
>>>1) The DBC is OPEN, yet I can copy it fine with Windows Explorer and the copy can be OPEN DATABASE.
>>>
>>>2) VFP doesn't allow doing a COPY FILE for all three files because the database is OPEN (in use).
>>>
>>>3) I tried USEing AGAIN the DBC as a table and then COPY TO, but the copy is not recognized as a database and cannot be opened. All deleted records are gone from DBC copy but all remaining records are identical. hmmm
>>>
>>>4) I then USED AGAIn the DBC as a table, SET DELETED OFF, COPYed TO, (which preserved the records, although not deleted) then deleted appropiate records in copy, but copy is still not recognized as a database grrr
>>>
>>>5) I even trid doing a SQL SELECT with deleted off and then deleting the appropiate record, but again no.
>>>
>>>What is needed may be to make a Windows copy via some shell, but I don't now how to do this.
>>>
>>>Any suggestions?
>>>
>>>Alex
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform