Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OleDB provider forces non null fields
Message
De
13/05/2006 04:52:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/05/2006 20:09:40
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 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01121568
Message ID:
01121609
Vues:
9
>When using the OleDB provider to insert a record in a VFP table, is there a way to avoid all those messages where it complains about the fact that, if a field is not part of the INSERT, that it cannot be null?
>
>For now, I have to insert several fields in the INSERT command, just to put a value of 0 for numeric fields. I would like to avoid that.

Michel,
VFPOLEDB supports "set null off" command. First do an ExecuteNonQuery on the connection (posted full samples with framework1.1 before).
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