This is a newbie question, and hopefully an easy one to answer.
We are integrating a SQL Server 7 databse with Visual Interdev
for our intranet to track the time that our employees spend on
particular jobs. We currently have a field in a transaction
table that is used to store the time that an employee starts on
a particular job (the key to this table is the emp#, the job#
and the starttime). The field is set to datetime data type. If
you enter 8:30 in the time field through Visual Interdev, the
database stores only the time. When the emp types in 8:30, for
example, the database is updated with the default date (January
1, 1900) and the correct time. Here is the SQL statement used:
"UPDATE timesheet SET starttime ='" & Request.Form("starttime")
& "'"
We only want the time stored in the field. Is this a problem
with the SQL statement? Are we missing a modifying parameter? We
can't find anything that relates to this specific problem
anywhere.
-----------------------------------------------------------
Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com