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)
 Resume INSERT following error

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-12-16 : 11:54:38
Daniel writes "I'm trying to insert the contents of a CSV file into a SS7 database. The data is quite messy and often generates errors when inserting. The data is from a third party and cannot be cleaned economically.

Is it possible to skip records with errors and continue processing the CSV file?"

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2001-12-16 : 18:41:45
Hi

There isn't a good way to do this in DTS.
You best bet is using some sort of pre-processor to sort out the good data from the bad beforehand.

Have a look at this thread

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=8045



Damian
Go to Top of Page

efelito
Constraint Violating Yak Guru

478 Posts

Posted - 2001-12-17 : 12:01:27
On the advanced tab of a transformation in DTS there is a Max Error Count Option. You can set this as high as 9,999 and kick the bad records to an exception file. Other than that you probably be best off pre-processing the file like Merkin suggested. Just a quick field validation that creates a load and an excepiton file... should be pretty easy to generate.

Jeff Banschbach
Consultant, MCDBA
Go to Top of Page
   

- Advertisement -