i am getting " The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
The statement has been terminated."
public void Insert(String Query)
{
MyCommand.CommandType = CommandType.Text;
MyCommand.CommandText = Query;
MyConnection.Open();
MyCommand.Connection = MyConnection;
MyCommand.ExecuteNonQuery();
MyConnection.Close();
}