PRB: VFPODBC Driver Ignores Path in DSN When Executing SQL
Article ID: 192979
Article Last Modified on 5/12/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 5.0a
- Microsoft Visual FoxPro 6.0 Professional Edition
This article was previously published under Q192979
SYMPTOMS
After you connect to a particular database, or point to a free table
directory, the Visual FoxPro ODBC driver ignores the path specified in the
Datasource.
RESOLUTION
In the SQL statement, use the full drive and path where the table is to be
stored. For example:
CREATE TABLE 'C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\MSDN98\98VS\1033\
SAMPLES\VFP\DATA\MYTEST1' (FLD1 C(10),FLD2 N(6.2))
NOTE: With MSQuery, if you are using a path similar to the preceding
example, you must use a command similar to the following:
CREATE TABLE d:\PROGRA~1\MICROS~1\MSDN98\98VS\1033\SAMPLES\vfp98\DATA\
MYTEST1' (FLD1 C(10),FLD2 N(6.2))
STATUS
This behavior is by design.
Keywords: kbdatabase kbprb kbcode KB192979