Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert without nulls from NET
Message
 
 
To
24/07/2009 19:23:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01414410
Message ID:
01414411
Views:
53
>I am executing an SQL INSERT from a NET website. The insert statement has an incomplete list of the fields in the table. The intention is that the fields not listed would be left blank. The table is structured to not allow null values. The insert from the website fails with a message that the field does not allow null values. I am trying to find a way to deal with this. One solution is to revise the table to allow the nulls but this is undesireable. Another solution might be to establish a default value for each field (untested). But this is also undesireable. I would prefer the empty fields just be left blank.
>
>Any suggestions on how I might accomplish this?
>Thanks

Unfortunately, you already listed both possible solutions - specify all fields, set default values, allow nulls. There is no other solution for this problem.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform