Solved

SQL to Excel Import

Posted on 2014-02-21
3
483 Views
Last Modified: 2014-02-21
I have a table in SQL 2008 R2 called Inspection.
a column in that table called date formated as date with allow nulls

Every time I import this into excel the column comes over as text instead of date.  I have to select the column and select "Text to columns" so this data will show up as date.

How can I fix this??
0
Comment
Question by:HDM
  • 2
3 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 39877665
The column has to formatted as DateTime, not DateTime2. Excel doesn't recognize dates in the DateTime2 format.

Kevin
0
 

Author Closing Comment

by:HDM
ID: 39877684
You are my HERO!!

If I could give you 1,000 points I would!!  :-)
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 39877697
:-)
0

Featured Post

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

862 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

24 Experts available now in Live!

Get 1:1 Help Now