I have a table in which there are some datetime type columns. I use a stored procedure to insert values into the table. In the stored procedure I have variables that accept null
In the stored procedure do something like this:
insert into table(date) values(case when @InsertDate ='' then null else @insertDate end)