PRB: Remote View of 2.x Table Changes Numeric Field Data TypeID: Q145608 3.00 3.00b WINDOWS kbinterop kbprb The information in this article applies to:
SYMPTOMSWhen you create a remote view based on a FoxPro 2.x table and a numeric field is present, the view will change the data type of the field to a double that defaults to two decimal places.
CAUSEThe field type is determined by the ODBC driver in use.
RESOLUTIONBefore the view is opened for a browse, issue the following command:
In this example, the <View_name.fieldname> is the name of the remote view
and field. The <nX>, <nY> in the n parameters should be replaced with the
original field size followed by a comma and then the original decimal
places.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Problem1. Copy the Invoices table from FoxPro for MS-DOS 2.6 or FoxPro for Windows 2. Modify a database, and create a new remote view.
3. Select Available data sources, and choose FoxPro Files from the list. 4. When the Open dialog box appears, choose the Invoices table. 5. Choose your fields to display, and then run the query. 6. You should notice that the INO field in the view now has a decimal point 7. Type the following command in the command window:
8. Type the following command in the command window:
Additional reference words: 3.00 3.00b VFoxWin sql
KBCategory: kbinterop kbprb
KBSubcategory: FxinteropOdbc
|
Last Reviewed: March 28, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |