Add null value of datetime in sqlparameter.

By Super Man

Here i will show how you can add the datetime value to null in parameter of sqlcommand.

SqlCommand cmd = new SqlCommand ("insert into values(@date)");

cmd.Paremeters .Add("@date",SqlDateTime.Null);

Add null value of datetime in sqlparameter.  (1515 Views)