Conversion failed when converting date and/or time from string SQL Server -
i surprised, while copy , paste 'mon, 26 aug 2013 5:32:44 gmt'
in database table field of type datetime
in editable mode update cell while executing query
declare @manoj date set @manoj = 'mon, 26 aug 2013 5:32:44 gmt' update nk_news set pubdate =@manoj id= 70
here pubdate
datetime field
it generate error conversion failed when converting date and/or time character string
is there way find query run @ editable mode in sql server management studio.
set @manoj = stuff(replace('mon, 26 aug 2013 5:32:44 gmt', ' gmt', ''), 1,5, '')
Comments
Post a Comment