Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find out what the data type is on SQL Server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00183021
Message ID:
00183114
Vues:
20
Thanks for quick response!

This is for SQL Pass Through. We have a program that converts the FoxPro data to acceptable to SQL Server. The current code converts the date to a string which is fine for datetime but not small date. I will try out the SQLColumns function.

DLC

>>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
DLC
"Use the Right Tool for the Job!"
davidandcynthia@email.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform