Click here to Skip to main content
15,909,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I have a requirement in which I have excel sheet which I want to store data into sql database. I am completely new to asp.net. Can any one help how to go about it. Do I need to create database schema first? I found many scripts regarding this in many forums. I had referred http://www.aspdotnet-suresh.com/2012/12/how-to-import-data-from-excel-to-aspnet.html
But want to know if suppose excel document contains 4 sheets, so do i need to create 4 tables in advance to store data to export to gridview.

Please help me by providing step by step information.

Thanks in advance.
Posted
Comments
ArunRajendra 22-Oct-13 4:52am    
There is no generic answer for you question. You need to first decide how you want to store the data and import. It also dependens on the data being imported.

1 solution

First step Right click on your database

then go to task select import data

now provide authencity and password of your sql the click on next and finish
 
Share this answer
 
Comments
chitransh635 22-Oct-13 4:53am    
what type of error have you found in this
saeel chary 22-Oct-13 5:18am    
Sir,

Do i need to create database first?
chitransh635 22-Oct-13 6:50am    
yes buddy without that where you will save your data

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900