How to convert a SQL Server datetime column to a date in a remote view in Visual FoxPro 3.0 (137604)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q137604 SUMMARY
To retrieve a datetime column value as a date (mm/dd/yy), a data type conversion must occur. For example, Microsoft SQL Server does not have a date data type; dates are always stored in a datetime format. This article describes how to convert the remote datetime data type to a date value by using the DbSetProp function. In Microsoft Visual FoxPro 3.0, you cannot do this by using the user interface when you create a remote view.
Note In Visual FoxPro 7.0 and later versions, you can change the data type of a field by using the Data type list in the View Field Properties dialog box of the View Designer. REFERENCES
FoxPro Help: Client/Server Applications, Data Type Conversions, Changing
Default Data Types when Downloading.
Language Reference, page 245, "Field Properties for Views."
Modification Type: | Major | Last Reviewed: | 3/18/2005 |
---|
Keywords: | KB137604 |
---|
|