I am in the middle of a project and then the dreaded Conversion error appears during my INSERT command. I am moving data from one database to another.
Database A has datetime fields that are VARCHAR and look like this: 12/30/2009 3:53:02 PM
The destination table has these fields as datetime. I have tried the following within the INSERT statement:
NSERT INTO A SELECT
CONVERT(VARCHAR(50), CAST(dateAccepted AS DATETIME), 130) [dateAccepted]
...but I am still getting the error.
Any help will be appreciated
Database A has datetime fields that are VARCHAR and look like this: 12/30/2009 3:53:02 PM
The destination table has these fields as datetime. I have tried the following within the INSERT statement:
NSERT INTO A SELECT
CONVERT(VARCHAR(50), CAST(dateAccepted AS DATETIME), 130) [dateAccepted]
...but I am still getting the error.
Any help will be appreciated