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
 SQL Server Development (2000)
 import csv problem

Author  Topic 

hsedidin
Starting Member

5 Posts

Posted - 2001-11-20 : 08:22:50
I am having a problem with importing a csv ( a few rows are shown below) using dts into a table from which I need to update another table. The problem is that I need to add the stock from all the whse into one field with the isbn as the key. The stock and price will update where the isbn exists.


The csv has over 1,300,000 rows.

Any suggestions would be appreciated.

Howard


isbn,whse,stock,backorder,disCode,price
0001025252,SOM,1,0,H,9.95
0001046403,MOM,0,3,H,14.95
0001047647,MOM,2,0,H,14.95
0001047647,SOM,3,0,H,14.95
0001047655,MOM,3,0,H,14.95
0001047868,MOM,4,0,H,14.95
0001047868,REN,3,0,H,14.95
0001047868,SOM,3,0,H,14.95
0001047973,SOM,1,0,H,14.95
0001048074,MOM,1,0,H,22.95
0001048503,SOM,2,0,H,14.95
0001049143,COM,3,0,H,11.95
0001049143,MOM,1,5,H,11.95
0001049143,REN,5,0,H,11.95
0001049143,SOM,4,0,H,11.95
0001049283,REN,1,0,H,14.95
0001049356,COM,1,0,H,14.95
0001049356,SOM,6,0,H,14.95
0001049690,MOM,0,1,H,14.95
0001049690,REN,1,0,H,14.95
0001050184,REN,1,0,H,14.95
0001050184,SOM,0,3,H,14.95
0001050192,MOM,3,0,H,14.95
0001050494,MOM,1,0,H,14.95
0001050494,REN,0,1,H,14.95
0001052012,COM,0,1,H,14.95
0001052012,SOM,0,1,H,14.95


   

- Advertisement -