vb.net - update the 'Null' value to the data time in to sql server -
this question has answer here:
i'm using sql server , update date_time column null .
query :
update table_name set date_col=null item=201 , job_code=3
when exec query in database it's working fine .
and pass same query in vb.net exec data_time column has change minimum value :'1/1900 12:00:00 am' how can able update record . give example of update query
your sample date format incorrect. update rows lowest data value can use
update table_name set date_col='1/1/1900 12:00:00 am' item=201 , job_code=3
if column data type dattime2 can give date minimum '01/01/0001'
update table_name set date_col='1/1/0001 12:00:00 am' item=201 , job_code=3
Comments
Post a Comment