Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2006, 09:13 AM
Authorized User
 
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anandham
Default Excel Upload Issue

From asp application we upload an dynamic excel to the server from where the data from Excel is getting inserted into Database. But when the 1st row of teh excel is a number the remaining values in the same column are treated as number. So if there are any value in % comes that is converted into a decimal number & getting stored in Database.
Example

In Excel
2005
10%
20%

In database
2005
0.1
0.2

But we would like to save it in database as the % values.

we are using loader.asp which uses the fso, binaryData type of upload.

Please someone help.

Thanks


Prem Anandh P.
Ambition Never comes to an End
__________________
Prem Anandh P.
Ambition Never comes to an End
 
Old June 20th, 2006, 06:00 PM
Authorized User
 
Join Date: May 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What method are you using to move the data over? All in the ASP? Stored Proc? DTS?

Hasta Luego..
KingRoon

DogFightClothing. No dogs. No fighting.

http://www.dogfightclothing.com
 
Old June 20th, 2006, 11:21 PM
Authorized User
 
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anandham
Default

I'm using an all in ASP method i.e. a code written using file system object. I downloaded this code from some resource.

Prem Anandh P.
Ambition Never comes to an End
 
Old June 20th, 2006, 11:46 PM
Authorized User
 
Join Date: May 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If I were you, I'd use DTS to sort your Excel data out.. It allows total data type control and is always a useful area to learn about..

There's a good article here http://www.sqlteam.com/item.asp?ItemID=19595

This will pretty much do what you are after..

Hasta Luego..
KingRoon

DogFightClothing. No dogs. No fighting.
http://www.dogfightclothing.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue in Upload/download FTP file via Proxy C#.NET naveenh C# 3 June 20th, 2008 08:51 AM
Strange Upload Issue Elenesski ASP.NET 1.0 and 1.1 Professional 2 April 8th, 2007 11:26 PM
ASP to Excel - excel output formatting issue mat41 Classic ASP Professional 0 August 13th, 2006 06:41 AM
Excel 2000 vs Excel 2002 Macro Issue williadn Excel VBA 1 July 14th, 2005 09:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.