getting the error
{"Failed to convert parameter value from a DateTime to a Byte[]."}
i have tried time-stamp but getting the error
cmd.Parameters.Add("@DATETIME", SqlDbType.Timestamp).Value = DateTime.Now;
getting the error
{"Failed to convert parameter value from a DateTime to a Byte[]."}
i have tried time-stamp but getting the error
cmd.Parameters.Add("@DATETIME", SqlDbType.Timestamp).Value = DateTime.Now;
If you want to assign DateTime to parameter's value, change its type to SqlDbType.DateTime.