Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not sure why this Update is failing
Message
From
25/02/2003 12:01:26
 
 
To
25/02/2003 11:56:33
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00757600
Message ID:
00757632
Views:
11
Kev,

>>No, you've been most helpul, thanks.

You're welcome, I try ... <g>

I usually allow NULLs in all columns in a table except the PK and possibly a few FKs. I realize there are business reasons for not having a particular column contain NULLs, but where at all possible I let NULLs happen.

~~Bonnie


>>Kev,
>>
>>>>I hope there is a way of excluding NULLS being placed into the fields from VB, rather than having to change my VFP table?
>>
>>Yes, I'm sure there is, but VB isn't my strong point. Plus, I'm not using the da.Update() to update my backend (we use SQL Server and SPs), so I'm afraid off the top of my head I can't point you in the right direction, other than to say that it's something you'd need to set in the DataSet I think. Either that or, if there's not that many NON-NULLable columns, just make sure you set them to something before you update ... after all, they shouldn't be NULL to begin with.
>
>Yes, there aren't 100's of fields, so I will ensure they are blanked/filled.
>
>>(I know, I'm not much help today ... need more coffee!! <g>)
>
>No, you've been most helpul, thanks.
>
>Kev
>>
>>~~Bonnie
>>
>>
>>>>Kev,
>>>>
>>>>My guess is something in your table that doesn't allow NULLs ...
>>>>
>>>>~~Bonnie
>>>
>>>Yep, just after I sent this message (typical!) I tried the same call from VFP through ADO and that gave me the meaningful message I was looking for.
>>>
>>>I hope there is a way of excluding NULLS being placed into the fields from VB, rather than having to change my VFP table?
>>>
>>>Thanks
>>>Kev
>>>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform