Solved

SQL to Excel Import

Posted on 2014-02-21
3
481 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In this article I will describe the Detach & Attach 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.
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

758 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

17 Experts available now in Live!

Get 1:1 Help Now