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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -