Jagjit Saini

Jagjit Saini

  • NA
  • 166
  • 0

Insert Statement

Sep 6 2011 3:34 AM
Hi


MySqlCommand myCommand = new MySqlCommand("Insert into attendance (attendance_id,employee_id,punchin_time) values(" + 10 + "," + empno + "," + "Now()"  + ")", con);
  myCommand.ExecuteNonQuery();

IT is working fine . DateTime is correctly stored in Database . I want to know whether this will store Server Date&Time or Client Machine . I want Server Date&Time.

Thanks

Answers (2)