I am using ASP.NET MVC database first. Please how do I upload and save this excel sheet into the database using stored procedure
Table
Excel
CategoryID is auto-generated.
- Level 1: is the root parent. Its ParentID should be zero (0)
- Level 2 are the direct children of Level 1. Its ParentID is the CategoryID of Level 1
- Level 3 are the direct children of Level 2 Its ParentID is the CategoryID of Level 2
- Level 4 are the direct children of Level 3. Its ParentID is the CategoryID of Level 3
- It can continue to n level
- ParentID1 is the Level. Level 1=1, level2=2
Please how do I go about it
Laxmidhar SahooPosted Dec 7, 2017, 1:06 AM
Dharmraj ThakurPosted Dec 7, 2017, 12:33 AM
3. After data comes in DataSet you can read all rows of dataset by for loop.
4. In for loop get data from DataRow and write down the code of insert in database.
Thats It.
Laxmidhar SahooPosted Dec 6, 2017, 6:25 AM
mike idowuPosted Dec 6, 2017, 2:23 AM