Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Remote View Wizard Gives Error with Spaces in Table Name


View products that this article applies to.

This article was previously published under Q221614

↑ Back to the top


Symptoms

When using the Remote View Wizard to connect to a Visual FoxPro table, you receive the following error in the final step of the wizard:
Connectivity error:[Microsoft][ODBC Visual FoxPro Driver]Command contains unrecognized phrase/keyword.
When you press OK in this error dialog box, an Open dialog box appears. Choosing Cancel in the Open dialog box causes the following error:
No table is open in the current work area.

↑ Back to the top


Cause

The table name contains a space.

↑ Back to the top


Resolution

Here are two possible workarounds:
  • Remove the space from the table name.

    -or-
  • Upgrade to Visual Studio Service Pack 3.

↑ Back to the top


Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3.

↑ Back to the top


More information

Steps to Reproduce Behavior

  1. Create a free table and give it a name that contains a space, such as Test 1.
  2. Add some data and close the table.
  3. Using the Visual FoxPro ODBC driver, create a datasource that points to the table. In the Visual FoxPro driver ODBC setup, make sure to select the "Free Table" option button.
  4. In Visual FoxPro, create a database.
  5. Add a remote view to the database by using the Remote View Wizard.
  6. Choose the datasource created in step 3.
  7. Select some fields and click Finish.
  8. Choose Save remove view and browse, press Finish, and then provide a name for the remove view.
The error described in the Symptoms section occurs.

↑ Back to the top


Keywords: KB221614, kbwizard, kbvs600sp3fix, kbfix, kbdatabase, kbbug

↑ Back to the top

Article Info
Article ID : 221614
Revision : 2
Created on : 10/15/2002
Published on : 10/15/2002
Exists online : False
Views : 466