Solved

SQL to Excel Import

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

830 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