Click here to Skip to main content
15,891,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an excel file with 4 columns and i have a sql server 2008 table with 6 colums, in that two columns are not there in the excel file.
while uploading the excel file (bulk) i have to read the two columns values from the user(drop down list) and upload them along with excel file. please help.

Ex:

Excel file columns(R.No, Name, Father Name, Gender)
Sqlserver columns(Branch, Year,R.No, Name, Father Name, Gender)

Enter Branch:
Enter Year:
Upload Excel File:__________(Browse for Excel File)

Upload Button
Posted

1 solution

First get All value from excel into Data set & data set will have 6 Column.
Then get value for other 2 column & update data set.
 
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