SQL语句:
string sqltext = "SELECT COUNT(*) FROM ModuleLog m WHERE m.AccessId=" + employeeid + " AND (CONVERT(DateTime, CreateTime) >= '" + DateTime.Now.ToShortDateString() + " 00:00:00')" + "AND (CONVERT(DateTime, CreateTime) <= '" + DateTime.Now.ToShortDateString() + " 23:59:59')";