Solved

SQL Server 2005 Job with SSIS package as STEP ....

Posted on 2007-11-28
2
513 Views
Last Modified: 2011-09-20
Hi,

I am working on SQL Server 2005 with SSIS. I have cretaed a SQL Server Job having a step with SSIS package. The package will not do anything except that it loads data from TXT file with necessary columns and dumps into SQL Server 2005 database table.

My intention is...while it is trying to load data from TXT file to database table, if any error occurs (Ex: May be because of datatype mismatch) then i want to see 1) What is the error 2) At which record the error has occured and i want to have a notification email to me with this necessary information.

Can you please provide me steps to do this task ? If you can provide me details how we can achive this by code is much appreciated. Appreciate your help !

Thanks
0
Comment
Question by:kishore_peddi
2 Comments
 
LVL 17

Accepted Solution

by:
pssandhu earned 500 total points
ID: 20371029
First you will need to create a database mail profile.
http://www.databasejournal.com/features/mssql/article.php/3626056

After you have successfully done the above you can then go into your job properties and set up an email notification everytime the job executes. But to start with it will take a bit of an effort to set the DB Mail if this is your first setting it up. Refer to the link and ask where you get stuck.

Cheers!
0
 

Author Comment

by:kishore_peddi
ID: 20371077
Hi,

I did this job - DB Email. Can you please explain how can i get my information

1) What is the error
2) At which record the error has occured

Please remember that my job step is having Package only. And we need to track if something happens in that package - while loading from TXT file to table.

Thanks
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question