Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OleDB provider forces non null fields
Message
From
13/05/2006 04:52:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/05/2006 20:09:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01121568
Message ID:
01121609
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform