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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import problem in DTS package

Status
Not open for further replies.

ShaneS

IS-IT--Management
Joined
Sep 17, 2003
Messages
1
Location
AU
i am doing the following in a DTS package
Importing data from xcel into a temp table and then used a stored procedure to update the main table from the temp table.
But the problem is that sometimes the the xcel data might be errorneous eg one of the columns is a date field ,if date is not in proper format then the DTS inserts a null into the temporary table.IS there any way that i can trap this error when the process is running ??

If the date is invalid i just need to skip the record and write it to and error log file or ELSE abort the whole process with an email being sent to concerned person to fix the bad date.
Also i have a unique id field and in case this field contains a null or alphanumeric what can be done in that case??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top