give this query a try for your deletion of rows with column values=null
sundar k replied to Jr .net on 05-Feb-08 11:11 PM
Try this query
delete from MyTable where FirstName is NULL or len(rtrim(ltrim(FirstName)))=0
How do you get Null values at the first place
Nenad Prekupec replied to Jr .net on 06-Feb-08 03:19 AM
As it seems to me you are doing things on the wrong way.
Data base itself has menas to protect from such kind of things automaticly, defining constraints at database level will give you less work for keeping your DB clean of such things, the only thing you have to do is handle errors from DB (this is what you have to do anyway) and you have to say what fields in tables you don't want to have NULL values, that way it's impossible to have your situation in the first place.