Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open ADO exclusively
Message
From
25/12/2002 15:22:08
 
 
To
23/12/2002 10:39:25
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00735335
Message ID:
00735750
Views:
8
Hmmm I tried that and the new connect string was accepted as valid, but I still encountered the same problem when I try to issue a Pack command via the Ado.Execute method

Maybe I'm going about this the wrong way...?

Anyway I have a VFP database container (with tables) .dbc accessed thru ODBC, so I open an ado connection like so:
ado.open "dsn=jas_data;exclusive=yes"

When I write the following command:
ado.execute "delete * from table1.dbf"
ado.execute "pack"

the 2nd line fails with an error message stating that it should be opened as exclusive. If I use "pack table1.dbf" instead, I get an error saying the file is in use.

Any ideas...? (although I'm pretty sure I'm actually using the PACK command wrong here...)

Thanks much!
evolve or die.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform