upload - loading data from an excel to sql DB -


i have table data in sheet of xls. need 'update' data table in sql db.

note:

  1. the xls contain columns undergo change. (for example if 2 columns undergo changes, 2 columns records present in xls)

  2. the primary key column present in xls reference.

please me in solving this.

if one-off load pretty easy turn data sql statements. sheet has 2 columns (a & b) put following formula in column c:

"update tablename set somecol=" & b1 & " keycol=" & a1 

(sorting out quotes strings, etc appropriate)

next copy formula down bottom, copy cells in col c, paste text editor , run sql tool.

if need hand on users or run there many, many ways , depends on tools @ disposal (java, c#, ...)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -