I’m encountering a very strange when I insert a new record into a table in my SQL SErver DB instance. I have the following simple query:
INSERT myTable (SerialNumber, PartNumber, IP, QA) VALUES ('123456789012', '1234567','192.168.1.1','1')
And the table I’m trying to modify:
SerialNumber - varchar(64) - Not_Null
PartNumber - varchar(64) - Null
IP- varchar(64) - Null
Col_1 - varchar(64) - Null
Col_2 - bit - Null
Col_3 - bit - Null
QA - bit - Null
Now when I run this query in SQL Server Management Studio I get the following error:
Msg 241, Level 16, State 1, Line 1
Conversion failed when converting datetime from character string.
Nowhere in my table do I have a column with a datetime type, so I do not why I’m getting this error. Any help is appreciated.
I was unable to reproduce with the following script on sql server 2005
It worked as expected … Can you double check to be sure that you don’t have a trigger on your table?