Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP logical -> MSSql Bit
Message
De
05/01/2009 15:31:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/01/2009 14:59:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01371150
Message ID:
01371176
Vues:
15
>Ok, I give up. How do I send a logical VFP value to a MSSql 2005 bit field.
>
>.T. and .F. don't work, 1 and 0 don't work, and even though SQL Server says it will take the string values of 'True' and 'False' (and it will in Management Studio), they don't work from VFP either.
>
>Any help is appreciated.
MyLogical1 = .t.
MyLogical2 = .t.

SQLExec(m.handle, "update mySQLTable set bitField1 = ?m.MyLogical1, bitField2 = ?m.myLogical2")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform