sql server 2005 - Uploading Data For A New Column In MSSQL -


i've added new column database , want populate spreadsheet. there easy query grab data out based on column in spreadsheet matches 1 in database?

thanks

i know of 2 ways:

edit spreadsheet, create formula

="update mytable set mynewcolumn = " + a1 + " " + b1 + " = primarykeycolumn" 

where a1 represents first cell data , b1 primary key value row updated. drag cell down lower right corner formula repeated. copy text produced formula, paste sql mgmt studio , run.

or, can use mssql's import engine allows select spreadsheet datasource. there can map column new column.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -