Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find out what the data type is on SQL Server
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00183021
Message ID:
00183066
Views:
18
>Is there any way to find out what the data type of a field in SQL Server? I need to program against using DateTime and Small Date for comparisons.
>TIA!
>DLC

Dave,

From VFP use can use SQLColumns() with the NATIVE option. The call would look like this:

SQLColumns(hConnect, 'tablename', 'NATIVE')

SQLColumns() will return a result set that contains one row for each column in then table.

BTW, The VFP engine will convert both datetime and smalldatetime to VFP's datatime datatype.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform