Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric in VFP Cursor 2 digits bigger than SQL table size
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Numeric in VFP Cursor 2 digits bigger than SQL table size
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01231004
Message ID:
01231004
Vues:
50
Querying a SQL Server table using SQLEXEC() and I notice that every numeric field is 2 digits larger in the VFP cursor than the actual SQL Server table.

If I look at the columns using the following 2 calls, I see that the VFP cursor is using the Buffer_Length and not the Column_Size.

=SQLCOLUMNS(lnsqlhandle, "ADDRESS", "FOXPRO", "addsqlvfp")
=SQLCOLUMNS(lnsqlhandle, "ADDRESS", "NATIVE", "addsqlnative")

Any suggestions on how to correct this behaviour?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform