Unless your CF Service is running as the interactive user then CF will
not
see any drive letters, you will need to use UNC coding. Also, you need
to
make sure that whatever user CF is running as has rights to the file.
In
our case we ended up creating a special user that CF runs as that we
can
then give rights to specific information on other servers.
So to summarize what we did was:
1) Created a CF user for the service to run as.
2) Granted rights to the CF User to the data that CF needed to access.
3) Created an ODBC connection to the directory where the FoxPro tables
are
using UNC coding. I.E. the path would be
\\ServerB\TheShare\pro50\ARDATA
4) Do the following:
<cfquery datasource="foxprodsn" name="getsodata" debug>
SELECT custno FROM arcust10
</cfquery>
That should do it.
______________________________________________________
Bill Grover
Supervisor MIS Phone: 301.424.3300 x3324
EU Services, Inc. FAX: 301.424.3696
649 North Horners Lane E-Mail: [EMAIL PROTECTED]
Rockville, MD 20850-1299 WWW: http://www.euservices.com
______________________________________________________
> -----Original Message-----
> From: Andres [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 12:15 PM
> To: CF-Talk
> Subject: Accessing FoxPro database
>
>
> Hello All,
> I am trying to access a foxpro database. This database is stored in
> server A, while the Cold Fusion and web server is located in
> server B.
> Server B has all the odbc connections set to read and access
> the foxpro
> files in server A.
>
> When i try to run the following query i get an error:
>
> <cfquery datasource="foxprodsn" name="getsodata" debug>
> SELECT custno FROM S:\pro50\ARDATA\arcust10.dbf
> </cfquery>
>
> This is the error i get:
>
> ODBC Error Code = S0002 (Base table not found)
> [Microsoft][ODBC Visual FoxPro Driver]File 'arcust10.dbf' does not
> exist.
>
> The error occurred while processing an element with a general
> identifier
> of (CFQUERY), occupying document position (9:1) to (9:56).
>
> I've also tried these other ways:
> SELECT custno FROM 'S:\pro50\ARDATA\arcust10.dbf'
> and...
> SELECT custno FROM arcust10.dbf
> and...
> SELECT custno FROM 'arcust10.dbf'
> and...
> SELECT custno FROM arcust10
> and...
> SELECT custno FROM 'arcust10'
>
> I've also made sure the table DOES EXIST... and that i have access to
> this mapped drive (s drive). I have also ensured that the
> odbc settings
> point to the right location.
>
> Any ideas will be most appreciated.
>
>
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists