Solved

Imort Excel data to oracle database using ASP.NEt & C#

Posted on 2014-10-08
5
1,823 Views
Last Modified: 2014-10-14
Hi Team,
I have one excel file.I want to import excel file to data base using asp.net and C#.

Database is oracle.

Can u plz send example code

Thanks In Advance
0
Comment
Question by:mannevenu26
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 40368121
You could do it easily if you have access to any of the GUI tools like SQL Developer or Toad

There are various examples on net with screenshots(on how to do this via tools) see one below for toad

http://www.c-sharpcorner.com/UploadFile/1326ef/upload-exceltxt-file-data-into-oracle-table-using-toad/

However, if you want to do it via ASP.NEt then refer to this post where in you have to place your table name and connection strings and you are good to go and use it on your own

http://forums.asp.net/post/5372020.aspx
0
 

Author Comment

by:mannevenu26
ID: 40368133
I think above is sql server database.Can you please post code for ORACLE database
0
 
LVL 12

Accepted Solution

by:
Ramkisan Jagtap earned 500 total points
ID: 40368167
You can do it using Oracle data provider.
For reference check following link:
http://dotnetslackers.com/articles/ado_net/BulkOperationsUsingOracleDataProviderForNETODPNET.aspx

Download the Oracle Data Provider for .net:
http://www.oracle.com/technetwork/topics/dotnet/index-085163.html 

you can download the getting started sample[ODP.NET]:
http://www.oracle.com/technetwork/indexes/samplecode/dotnet-sample-522126.html
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40368200
I cannot provide a specific example as I've never gone from Excel to Oracle.

I have written code using OpenXML SDK:
http://msdn.microsoft.com/en-us/library/office/bb448854(v=office.15).aspx

That takes data from Oracle and inserts the data into an Excel 'template' that I have.

The OpenXML SDK allows you to work with native Office files quite easily.

I agree with the link above:  ODP.Net is the best way to use Oracle in .Net.

I've been using the new 12c Managed Driver for a little while and have been quite happy with it.  The bonus to using it is it doesn't require any Oracle client install like the regular ODP drivers.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 71
Visual Studio hangs on running project 6 62
asp.net uploading picture to a temporary folder 4 26
c# DateTime Format validation 4 70
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question