edwardturner
Technical User
Hi,
I've got a SQL Table in which I have imported dates in an american format. I am sure I can write a simply update statement to correct them. The select statement below gives me each part of the date (datewef being the field)
select day(datewef), month(datewef), year(datewef)
from TempImport
I would assume I could then do something like this:
update tempimport
set datewef = day(datewef) + '/' + month(datewef) + '/' + year(datewef)
Doing so gives me this error though:
Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the varchar value '/' to a column of data type int.
Any ideas welcome?
I've got a SQL Table in which I have imported dates in an american format. I am sure I can write a simply update statement to correct them. The select statement below gives me each part of the date (datewef being the field)
select day(datewef), month(datewef), year(datewef)
from TempImport
I would assume I could then do something like this:
update tempimport
set datewef = day(datewef) + '/' + month(datewef) + '/' + year(datewef)
Doing so gives me this error though:
Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the varchar value '/' to a column of data type int.
Any ideas welcome?