When modifying data in a SQL Server database you can use either System.DBNull.Value
or null
to represent a NULL
value. Both of these will work and will set the proper value to NULL
.
My question is - which of these is preferred, and why? Are there certain cases where one should be used in place of the other?