LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default importing alphanumeric columns from excel into SQL-Server or MS-Ac

I have an Excel sheet containing variable length alphanumeric productIDs. The
productIDs always start with digits and may end with hyphen and characters,
eg. "12345-ABC".

When importing the sheet using
- MS-Access Import
- MS-SQL Server 2005 Import
- my own code using ADO.NET 2.0 via ODBC provider
I loose various parts of the table:

I set the Excel format to "text". However all the above mentioned tools
treat the column as Double/Decimal and do not let me change it.
(SQL Server import replaces the alphanumeric productID by NULL, MS-Access
and ODBC ignore the rows completely.)

How do I teach Excel to present the column as "text" to others?

thanks herbert

 
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
how do I sum columns with cells that contain alphanumeric data? DC Excel Worksheet Functions 2 August 12th 08 08:27 PM
Problem importing data into sql server database Me Excel Discussion (Misc queries) 1 January 27th 06 01:51 AM
Importing Text file from a server Bluey Excel Programming 0 July 6th 04 08:32 AM
Importing Data from a Stored Procedure (SQL SErver) Martin Eckart Excel Programming 1 January 22nd 04 01:24 AM
Importing data from an Excel file on a web server using ADO/VBA Dean Frazier Excel Programming 0 November 13th 03 12:39 AM


All times are GMT +1. The time now is 12:12 PM.

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"