I have three data fields I need to store in SQL Server 2k. These fields are being imported via a table in Access. I figured I could just write the information into these fields but apparently I cannot.
Field1 = DateTime (mm/dd/yyyy) in Access
SMALLDATETIME in SQL
Field2 = DateTime (hh:mm:ss AM/PM) in Access
SMALLDATETIME in SQL
Field3 = Same as Field1
I'm just opening up 1 record at a time from access and writing the data into the SQL table but it says INVALID DATE FORMAT.
What am I doing wrong? Is there a specific datatype or casting I have to do inorder to store hh:mm info?
Thanks in advance.
Field1 = DateTime (mm/dd/yyyy) in Access
SMALLDATETIME in SQL
Field2 = DateTime (hh:mm:ss AM/PM) in Access
SMALLDATETIME in SQL
Field3 = Same as Field1
I'm just opening up 1 record at a time from access and writing the data into the SQL table but it says INVALID DATE FORMAT.
What am I doing wrong? Is there a specific datatype or casting I have to do inorder to store hh:mm info?
Thanks in advance.