Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Constraint Violating Yak Guru
In (Som, Ni, Yak)
select 'CaseDate' as CaseDate
select CONVERT(NVARCHAR(10), dateadd(hour, 8, CaseDate), 121) CaseDate from tableA
Very Important crosS Applying yaK Herder
quote:Originally posted by peacewhat if i want to convert to dateadd hour 8?select dateadd(hour,8,casedate)casedate from (select CONVERT(NVARCHAR, 'CaseDate', 121)union allselect CONVERT(NVARCHAR, CaseDate, 121) CaseDate from tableA)ai get this error:Conversion failed when converting date and/or time from character string.