1

When I want export the result set of a sql query from Management Studio to Excel, Excel does some inconsistent formatting to column with datetime values.

IN SSMS the Date looks like that in the first picture, and after exporting the values to Excel some rows are formatted different, like in the second picture.

IN SSMS the Date looks like that

I only have this problem with Excel, (Tools like Libre Office don´t have this issue), but on the system which I am working on, I am not allowed to install libre office. Any advice from an Excel pro?!

EDIT: SSMS is installed in German and Excel in English (thanks to my client), EDIT2: changed language settings, no effect

Thank you

4
  • 1
    Check your language settings in ssms and excel and make sure they match Commented Feb 18, 2016 at 9:17
  • Oh good idea. I will try to change my language settings Commented Feb 18, 2016 at 9:20
  • Booth are set to english now, no positive effect Commented Feb 18, 2016 at 9:25
  • Did you check us and uk? Commented Feb 18, 2016 at 10:05

1 Answer 1

1

This happens, because data is exported as text, data types are ommited. I develop SSMSBoost add-in. Alond many other tools it allows to copy-paste data to excel preserving datatypes. You can also script grid as .XML spreadsheet, which also preserves datatypes.

Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.