Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 October 30th, 2008, 12:08 PM
Registered User
 
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excel Export to Sql Server.

Hello Friends

    I have two columns in my Excel file and in my table of sql server also named as item_no and price..I have taken item_no as varchar(50) and price as money data types..I writen code to export from excel to sql server in C#.Net with ASP.Net..All the values where exporting from excel to sql server except numbers values in item_no column and it is inserting NULL instead of numbers..Can any help me where i was going wrong..I tried using nvarchar also..In the item_no i have charcter,numbers and special characters also.


Thanks
Basanth

 
Old October 30th, 2008, 12:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. some code please?? looks like you are not reading any data.. or are inserting the wrong one...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Export ASP To Excel in server Problems hugoscp Classic ASP Professional 0 October 29th, 2007 05:23 AM
How to export SQL RS data to Excel template johnilett BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 August 4th, 2005 03:39 AM
Export Data from Excel To Sql Israr Classic ASP Basics 0 January 24th, 2005 02:17 AM
Export sql server database liorlankri SQL Server ASP 1 October 24th, 2004 05:05 AM
Use ASP/SQL to export to Excel sankar Classic ASP Basics 10 July 18th, 2003 04:04 AM





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