Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import data from excel into SQL

Status
Not open for further replies.

aaa8888

MIS
Jan 28, 2005
5
US
Hi, i'm trying to import a column from my spreadsheet into a table in sql. I have two columns in my spreadsheet "service tag" and "warranty info". The table in sql has many columns or fields and one of that field is the same as my spreadsheet "service tag". I'm trying to import the column "warranty info" into the sql table that matches the field "service tag". Any help or suggestion would be great. Thanks
 
try importing into a temp table then run an update statement that is joined on "service tag" from the temp table to the table you are trying to insert into
 
You should be able to do this directly with a Transform Data Task. You can map the fields you want within this task as long as the fields are compatable. If not, you can use the ActiveX script within the Transform Data Task to make them compatible.

If you are trying to update existing records, you can do this with the Data Driven Query task.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top