Question : how to get datetime format  yyyy-mm-dd hh:mi:ss.mmm in EXcel cells while copying from management studio result set?

Hi,
I am trying to copy resultset from sql server management studio to Excel.In that result set I have a datetime column.After copying to Excel it shows only the time.How to get datetime column format in Excel i.e yyyy-mm-dd hh:mi:ss.mmm

Answer : how to get datetime format  yyyy-mm-dd hh:mi:ss.mmm in EXcel cells while copying from management studio result set?

sorry
1:
CONVERT(VARCHAR(11), your_date_field, 120) +CONVERT(VARCHAR(12), your_date_field, 114) 
Open in New Window Select All
Random Solutions  
 
programming4us programming4us