LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
ong ong is offline
external usenet poster
 
Posts: 1
Default Export SQL Server data to EXCEL cause all column become TEXT

Hi all,

I want to export some data from the SQL Server to Excel
worksheet using ADO and ASP.
I have already read the MS KB acticle and use the
recommend method to get data, open connection to excel and
then write the data to the worksheet using ADO in my ASP.
However, I find that after the program complete, the data
type of every column become TEXT, ie, have a preceding
single quote, even though the original data type is
Numeric.
The reason of the export function is allowing the user to
check the data in the database in a worksheet format, and
then import back the worksheet to the database if any
changes have been made. The advantage of this method is
many of the user find themselves more familiar with excel
worksheet rather than any file maintanence program.
However, when I export the data, all column become TEXT
but the user will input numeric data into certain column,
as a result, the import function (also using ADO) doesnot
recognize the mixed data coluumn and caused some data is
missing. It is hard to explain or forces the user to input
all column in TEXT format, even I do so, there is also a
risk that the user forgot to do so and casuse data loss.

Anyone have workaround this problem ?
Any help is highly appreciated

Thank in advance

Regards
ong
 
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
Export from Access/SQL Server JIM Excel Discussion (Misc queries) 0 August 20th 06 08:09 PM
get SQL Server text data type into Excel pivot table Lee@360Commerce Excel Discussion (Misc queries) 0 August 19th 05 11:37 PM
Read Image From SQL Server n Export to Excel Budiono Excel Programming 0 September 5th 03 10:02 AM
Export Excel to SQL Server Tom Y Excel Programming 2 August 7th 03 06:02 PM
Export to excel from ASP: Text data interpretation issue Saur Excel Programming 1 August 4th 03 03:53 AM


All times are GMT +1. The time now is 08:52 AM.

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

About Us

"It's about Microsoft Excel"