I am trying to insert a date into sql Server 2000.
I am using the INSERT...VALUES in an SQL statement with VB, But I keep getting the message that SQL cannot convert char to smalldate.
This is hacking me off!!
This is an example of code that does not work -
INSERT INTO someTable(cName, cDate)
VALUES('anyName', CONVERT(DATETIME, ' 2001 - 07 - 26 00:00:00', 102))
Is there another way?
I am using the INSERT...VALUES in an SQL statement with VB, But I keep getting the message that SQL cannot convert char to smalldate.
This is hacking me off!!
This is an example of code that does not work -
INSERT INTO someTable(cName, cDate)
VALUES('anyName', CONVERT(DATETIME, ' 2001 - 07 - 26 00:00:00', 102))
Is there another way?