Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE DB Provider for Visual FoxPro
Message
From
25/11/2002 16:58:02
 
 
To
25/11/2002 15:10:19
Chad Ashpole
Ads Information Systems, Inc.
Minneapolis, Minnesota, United States
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00726619
Message ID:
00726688
Views:
22
Chad,

I'm not sure if you understand what "null" is. Null means no data was present. So if you don't pass anything with the Insert command no data will be entered into the column ---- Null. If the column is setup to not accept Nulls, but you are saying this column should not have any data, I think you have a problem with database design.

However, if it is a case of you knowing that whenever data has not been entered then for example, the column should contain "NEVER", then modify the column to make "NEVER" the default value.

Perry

>I have a little bit of a problem. I am creating a web service using .NET. One of my functions inserts a new record into a FoxPro table. I have a connection string that uses the OLE DB Provider for Visual FoxPro and I am connecting using ADO.NET. When I run my function to insert a new record into my table, I have to specify all fields or I get an error that states somefield in my table does not accept null values. So my first question is, is there a some way that I do not have to include all fields in my insert statement? I cannot set the fields to accept nulls, so that is not an option. If there is no way to do this that's fine, I can specify all of my fields in the insert and add default values, but that leads me to my next question. There is a general field in the table. Is there a default value I can use in the insert statement for a general field? The only thing I can think of is APPEND GENERAL but that isn't an option in this case. The ideal solution would be to find
>some way where the OLE DB Provider did not insert nulls if I do not include all of the fields in my insert statement. However, I'm not sure if that is possible.

(On an infant's shirt): Already smarter than Bush
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform