You can not pass the C# Null keyword into SQL like that because, as you have seen, it will bomb the stored procedure.
Instead you need to use the DBNull class to let the stored procedure know that you are passing NULL data into it so you would do something like this: (I assume you are working with MSSQL)
sqlCommand4.Parameters["@ReviewDate"].Value = DBNull.Value;
That should work for you. Hth.
"The one language all programmers understand is profanity."
|