Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any side effects in allowing NULL?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Any side effects in allowing NULL?
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01539772
Message ID:
01539772
Views:
136
Hi,

Now that I have a couple of customers using my VFP application with SQL Server database I ran (once in a while) into a problem with NULLs. Here is what happens. In many places in the program the code creates an empty cursor. And then this cursor is populated from other cursors retrieved from SQL Server. And when adding a record to the initial empty cursor and a value happens to be NULL, the program bombs with an error (column COLNAME does not allow NULLS). In order to eliminate this issue I am thinking of always specifying/allowing NULL for every column of the empty cursor. Just in case. Will it slow down the processing of this cursor? The cursor usually is not very big, maybe up to 2000 records. What do you think? TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform