Solved

excel importing date field as text from sql server

Posted on 2011-02-25
1
211 Views
Last Modified: 2012-05-11
I've set up a data connection to sql server for a pivot table and a date field is coming over as text instead of a date. If I run the same query in sql server management studio, copy the results onto a sheet, that same field is in a date format.
How can I get the data connection to do the same thing?

the field in question source is
CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(Install.StartDate)-1),Install.StartDate),101) AS  Dated

thanks
alan
0
Comment
Question by:avoorheis
1 Comment
 
LVL 21

Accepted Solution

by:
oleggold earned 500 total points
ID: 34985587
this is mssql function,try to use get external data and microsoft sql server odbc driver to connect ,then put Your formating of the field to date
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delete texts with font color 16 30
Merging-Splitting-Multiple-Rows 33 42
Excel VBA When using VLookup 6 26
How do i remove text in between commas in Excel? 14 0
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now