How do I create a table in SQL server with the default DateTime as empty, not 1900-01-01 00:00:00.000 that I get?
1900-01-01 00:00:00.000
I mean, if there is no value inserted,
you can use like this:
string Log_In_Val = (Convert.ToString(attenObj.Log_In) == "" ? "Null" + "," : "'" + Convert.ToString(attenObj.Log_In) + "',");