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
Post a Comment