Viewing 5 posts - 1 through 5 (of 5 total)
January 24, 2017 at 9:14 am
I was able to write my query against the VarChar(4000) data type. This worked.
Update [WBPROD].[dbo].[TASK_SCHEDULE]
Set TSKSCD_DESCRIPTION = Replace(TSKSCD_DESCRIPTION, '<timezoneId>0</timezoneId><timezone>America/New_York</timezone>', '<timezoneId>1</timezoneId><timezone>America/Chicago</timezone>')
Update [WBPROD].[dbo].[TASK_SCHEDULE]
Set TSKSCD_DESCRIPTION = Replace(TSKSCD_DESCRIPTION,
...
May 30, 2014 at 1:16 pm
Thanks. I did not even know there was an XML Data Type. The data I am working with is stored in a VarChar(4000) column. Good to know.
May 30, 2014 at 12:28 pm
Here is what I ended up doing which works perfectly for my needs.
,Right('0'+ Convert(VarChar, DateDiff(ss,Coalesce(WBITRAN_START_DATE, WBITRAN_CREATE_DATE),Coalesce(WBITRAN_END_DATE, GetDate())) / 3600), 2) + ':' +
Right('0'+ Convert(VarChar, DateDiff(ss,Coalesce(WBITRAN_START_DATE, WBITRAN_CREATE_DATE),Coalesce(WBITRAN_END_DATE, GetDate()))...
May 15, 2014 at 12:12 pm
Thanks for the replies. Good stuff.
May 15, 2014 at 10:14 am
Viewing 5 posts - 1 through 5 (of 5 total)