Re: VFP 8 and ODBC connection



Instead of the overhead of ODBC or OLEDB, FoxPro can directly access it's
own tables via the USE command.

USE \\server\share\yourtable

If the tables are part of a database, open the database first.

OPEN DATABASE \\server\share\yourdatabase

Once the database is open, at that point you can now reference tables that
are in that database with just

USE yourtable


--
Fred
Microsoft Visual FoxPro MVP


"Adrian" <Adrian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0A793112-78C4-49FE-9B16-412439FA7DBE@xxxxxxxxxxxxxxxx
Hi Dan,

Thanks for your advice. I am pretty new for VFP, I am actually trying to
built up and debug from a project which has been going on for a while
(from
2001). I am much more comfortable with VB and ASP. Could you please give
me
more details on you comment "Foxpro is perfectly capable of using its
native
data engine and UNC paths. If you switch to native table access"
Apologies for the trouble.
Many thanks
--
Adrian


"Dan Freeman" wrote:

Using ODBC (or OLEDB, as your error message indicates) in a Foxpro
application to access Foxpro data is pointless and leads to unecessary
complications such as what you're seeing.

Foxpro is perfectly capable of using its native data engine and UNC
paths.
Just remember to close any dbf (and dbc) at the end of every method. If
you
switch to native table access, you may also get more meaningful error
messages. :-)

Dan

Adrian wrote:
Hi,
I am using software developed in VFP and trying to connect to the
*.DBC on a
different server. Basically the web application part of the software
is on a
dedicated application server and the database part of the software on
another
dedicated database server. I use ODBC system DSN to connect to the
*.DBC from
the web application server. I use UNC instead of map drive. I have
created a
domain user account and has distributed full writes to the servers +
application and IIS. When I run the application I get the first ASP
(classic
ASP) page which is the login page, once the user name and password
has been
eneterd this page should take us to the menu page but instead it
gives me
this error
â?oMicrosoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Visual FoxPro Driver]Cannot update the cursor.
/weblarms/login1.asp, line 85â??
And line 85 of the login1.asp is

'update the last successful login date
objpwdcontrol.loginupdate(session("uid"))

I have tried giving full access to all the folders available read,
write,
execute etc but it still comes up with this error. Normally â?oCannot
update
the cursorâ?? comes when the folder does not have read/write access
but in this
case they have full access to all the relevant files and folders. I
have even
given â?oEveryoneâ?? â?oAnonymous Userâ?? â?oASP.NETâ?? â?oNETWORK
SERVICESâ?? full access to this folder but still it is not allowing
me to go further. Please any help to
resolve this matter will be very much appreciated.
Many thanks

-----------
Adrian





.



Relevant Pages

  • Re: VFP 8 and ODBC connection
    ... Using ODBC in a Foxpro ... dedicated application server and the database part of the software on ... I have tried giving full access to all the folders available read, ...
    (microsoft.public.fox.helpwanted)
  • Re: Remote access for multiple users?
    ... would all be real time, and no updates would be required. ... foxpro tables for this unless there is not much data. ... database engine that FoxPro can work with just fine. ... Database can be oracle, SQL server, MySQL, Foxpro, or any other that can use ...
    (microsoft.public.fox.programmer.exchange)
  • Re: application developement
    ... *lot* of data where they have no ODBC driver. ... We have this partial list of supported ODBC database platforms: ... Adaptive Server Anywhere ... Microsoft SQL Server ...
    (comp.lang.c)
  • Re: Need to open Visual Fox Pro 8 tables in VB6
    ... There are several formats of Visual FoxPro files. ... VFP6 and below are readable via ODBC. ... "database container". ... Data Sources. ...
    (microsoft.public.vb.database.dao)
  • Linked Servers: Invalid schema
    ... Have you put a trace on the ODBC ... call 'in query analyser)- that gets ... database you are trying to connect to and schema refers to ... >server in Enterprise Manager and I have also used it ...
    (microsoft.public.sqlserver.odbc)