Click here to Skip to main content
15,915,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all experts,

I have one database and one excel file. in my database, i have 1 table(it has 100 Rows already) and in this table, there is one field(AliasName) that null. So the customer want to update the field(AliasName) from Excel File.Because in excel file, they input all aliasname (100 alisname).

My question is How can we update existing Values in specific field in table by using data from excel?

Note:
-The Table has primary key ("Code") and excel also include this field too ("Code").
-We use only one table.

Thanks

TONY
Posted

1 solution

I am not quite sure if this what you are really looking for but here are some links for you to take a look at:

Link 1[^]
Link 2[^]
Link 3[^]

As far as I know in SQL Server 2000 you can import your excel sheet into a table in your database (via DTS) and then update your table from the excel table you might able to do that with 2008 as well. Look for into that as well.

Good luck,
OI
 
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