Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Some Excel dates can't be imported into sql server?

I have a spreadsheet that I tried to import into sql server. Some
columns have dates in them. I find that some columns do appear in the
resulting database table with their dates. But in one column of the
database table, the dates are converted to blanks. I looked at that
column in the spreadsheet, and I tried formatting it differently, but
that didn't help. I thought that maybe the column had text fields
that looked like dates, but that doesn't seem to be it either.
The resulting database table looks odd because the dates from this
column don't become NULLs, instead they become blank strings. Usually
a blank cell in a spreadsheet translates to a NULL in the database
table, but when these dates are present in the spreadsheet, they
translate to a string of zero or more blanks.
If anyone has run into this before, and solved it, let me know.
Thanks,
Marv
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Some Excel dates can't be imported into sql server?

Is it possible that the dates that aren't imported are text. In an adjacent
column put this

=ISTEXT(A1). (or whatever the cell address is)
--
HTH,
Barb Reinhardt



" wrote:

I have a spreadsheet that I tried to import into sql server. Some
columns have dates in them. I find that some columns do appear in the
resulting database table with their dates. But in one column of the
database table, the dates are converted to blanks. I looked at that
column in the spreadsheet, and I tried formatting it differently, but
that didn't help. I thought that maybe the column had text fields
that looked like dates, but that doesn't seem to be it either.
The resulting database table looks odd because the dates from this
column don't become NULLs, instead they become blank strings. Usually
a blank cell in a spreadsheet translates to a NULL in the database
table, but when these dates are present in the spreadsheet, they
translate to a string of zero or more blanks.
If anyone has run into this before, and solved it, let me know.
Thanks,
Marv

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing 2 extra spaces in front of dates in imported excel doc Hannah Excel Discussion (Misc queries) 4 April 12th 06 07:37 PM
How to prevent Excel converting imported fractions into dates Phil A in the UK Excel Discussion (Misc queries) 6 March 28th 06 08:03 AM
Excel 2003 Trashes Imported Dates KymY Excel Discussion (Misc queries) 3 April 27th 05 02:34 PM
Excel 2003 Mis-Translates Imported DD/MM/YYYY Dates KymY Excel Discussion (Misc queries) 2 April 2nd 05 01:48 PM
Ensure dates imported into Excel 2003 are shown in DD/MM/YYY form. KymY Excel Discussion (Misc queries) 3 February 11th 05 02:28 PM


All times are GMT +1. The time now is 06:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"