Click here to Skip to main content
15,889,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hiii


I have a table in sqlserver DB namely EmpSalary and it consists of following columns..


EmpID EmpName Jan13 Feb13 Mar13

It is being imported from an excel sheet through .aspx page using C# programming.

and now i want to insert another Excel Sheet into the same table ..

But now before inserting the new Excel sheet into the table, i want to delete all the old data present in the table already and insert the new data.

How to do this using C# programming.
Posted
Updated 17-Nov-13 19:27pm
v6
Comments
Rockstar_ 18-Nov-13 1:44am    
It is better to create an excel file with the same fields as in sql table and then import the file with header and data. It works.
Harsha24 18-Nov-13 1:47am    
ty for the reply.. but how do u delete the earlier data..and do the same

1 solution

I don't know how ASP.net would help you, but that sort of thing can be done easily with SSIS.
 
Share this answer
 

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