Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserts, SQL and Nulls
Message
From
30/10/2001 13:03:55
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Inserts, SQL and Nulls
Miscellaneous
Thread ID:
00575195
Message ID:
00575195
Views:
58
I know it's common practice in VFP to not allow nulls. I assume this is also the case in SQL server. My problem is that when I do an SQL INSERT to insert a blank record for editing, any field left 'blank' is actually null filled and the insert fails. Two solutions come to mind. 1. Set a default value for each field in the SQL table (or VFP remote view). 2. Cycle through the record checking for nulls. Is there a better way? Should I allow nulls?

TIA

John
Next
Reply
Map
View

Click here to load this message in the networking platform