Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Import Update Process

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-09-12 : 10:53:47
Mark writes "I would like to UPDATE a SQL table through an automated import of an Excel file. For example, I have a SQL customer table with 2 columns, Customer Number and Customer Name, and the customer number is the primary key. Within an Excel file I have the same customer number with a new customer name. Is there any way that I can automatically update the customer name in the SQL table without deleting the row using DTS?

I am using SQL Server 2000 with NT 4.0 Service Pack 6. Thank you."

jasper_smith
SQL Server MVP & SQLTeam MVY

846 Posts

Posted - 2002-09-12 : 12:48:12
If the Excel file stays the same then just set up a linked server to it and you can update/insert as you would from another SQL table, no need for DTS.


HTH
Jasper Smith
Go to Top of Page
   

- Advertisement -