I'm selecting a substring from one column to populate another column using:
select doc_id,imagevolume, Load_date = substring (location, 42, 10)
from [!DocImagedArchivedLocation] as datetime
where LOADDATE is null
This provides me with the data I want the load date but it is NVCHAR in format and comes out like this: 01_13_2004. I'm using this select statement as part of an update statement to populate the load date field but cannot seem to get the syntax right to select this substring and covert it to a date time field.