Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: Getting to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 818 of 861
Post > Topic >>

Re: Getting to VFP vs. FoxPro for DOS from a Web App

by Cy Welch <cywelch@[EMAIL PROTECTED] > Nov 23, 2007 at 10:03 PM

peytontodd@[EMAIL PROTECTED]
 wrote:
> Hello. I have a problem I hope someone can enlighten me about. I am
> developing a website which gets data (read only) from a FoxPro for DOS
> app which is in constant day-to-day operation. It works fine on my
> FoxPro for DOS PC at home, and I hope it will also work on my client's
> FoxPro for DOS system, although there are differences between them,
> e.g., his is multiuser across a network, while mine is local to my
> PC.
> 
> But I'm worried, since my web app does not work if it tries to get
> FoxPro data from either of my two VFP PCs (old versions - VFP6).  If I
> run a SELECT (from ColdFusion, though I suspect that does not matter)
> on a DBF which is already open in Visual FoxPro, I receive a message
> like 'cannot open file c:\acrc\joblog.dbf)'. And vice versa: if I
> first bring back data using a SELECT statement in ColdFusion from a
> Visual FoxPro table not yet opened, then try to open it in Visual
> FoxPro, I get the message from Visual FoxPro that 'File access is
> denied'. Obviously whichever application gets to the file first seizes
> control of it.
> 
> I am going to FoxPro through ODBC, and I have the specs of the
> connection configured in the ColdFusion adminstrator as 'SELECT
> only' (ruling out all INSERTs, UPDATESs, etc). Moreover, the problem
> occurs whether or not I ask ColdFusion to put a  'readonly' lock on
> the DBF. (It can do that on other remote database systems... but are
> they all client/server systems instead of file-sharing?) I should
> point out that the tables in question here are not opened in Visual
> FoxPro with exclusive access. None of them belong to a DBC (obviously
> not in the DOS case, but also not in the VFP case).
> 
> The specs of my ODBC connections are identical on my FoxPro for DOS
> and Visual FoxPro PCs, though the drivers are no doubt different. My
> two VFP PCs have the VFP OBDC driver versions 6.0.8167 and 6.1.8629.1.
> I don't know what filename to look for to find my FoxPro for DOS ODBC
> driver.
> 
> Is this just a 'hole' in FoxPro for DOS that the VFP drivers 'fix'?
> After all, if a file is being updated, a SELECT could supposedly
> return inconsistent data, though in this case the likelihood of that
> is exceedingly slim). Should I simply be grateful that my client's
> FoxPro 2.5 system has this hole? In any case I would like to
> understand what is going on.
> 
I'm  guessing that your not making sure the exclusive is set to off, and 
since exclusive use is the default, VFP is insisting on opening the 
files exclusively.  If you either do a SET EXCLUSIVE OFF before using 
the files or USE {your database} SHARED the problem should go away.


-- 
Cy Welch
89 Camaro RS 5.0 TBI
03 Malibu
 




 2 Posts in Topic:
Getting to VFP vs. FoxPro for DOS from a Web App
"peytontodd@[EMAIL P  2007-11-19 16:40:28 
Re: Getting to VFP vs. FoxPro for DOS from a Web App
Cy Welch <cywelch@[EMA  2007-11-23 22:03:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:33:06 CST 2008.