Quantcast
Viewing latest article 16
Browse Latest Browse All 106

Problem when isertind datetime dat into a MS-SQL DB

I am using the developer's tool box to create a form that inserts

data into a MS SQL 2005 database, one of the fields is a date/time field i.e mm/dd/yy hh:mm:ss AM/PM

 

When I attempt to insert data I get this  message:

 

Error:
SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting character string to smalldatetime data type..
Developer Details:
SQL error: INSERT INTO LockOutKeyLog (LogDate_LOK, InfoCenter_LOK, UserID_LOK, Building_LOK, Room_LOK, ResidentPennID_LOK, ResidentFirstName_LOK, Resident_LastName_LOK, ResidentMI_LOK, KeyReturned_LOK, KeyReturnedDate_LOK, signstr, bmpstr, jpegstr, hashdata, Comments_LOK) VALUES ('01/01/2009 1:10:14 P', 'mfpena', '12312312', 'good', null, null, null, null, null, null, '01/01/2009 1:00:00 P', null, null, null, null, null). (SQL_ERROR)

 

Any sugestions on how to fix the problem?


Viewing latest article 16
Browse Latest Browse All 106

Trending Articles