i want to insert null value into database, so i use System.DBNull.Value
but it doesn't show NULL, but a empty field. I tried System.DBNull.Value.ToString, it gives me same result.
what can i do to have NULL in that field?
thanks for any advise, i would appreciate it very much.
Hello,
If you use an INSERT statement and don't mention the columns you want null values in then they will contain null values for the inserted row.
--Bonnie
|||Could you please show us your query ? I am not sure, from which application you want to insert the NULL value, either through code (then we need your code to investigate your problem) or through the GUI (then you will simply have to press STRG+0 staying inside the actual data cell)Jens K. Suessmeyer
http://www.sqlserver2005.de
No comments:
Post a Comment