Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Exception reports

 
   Database Help (Home) -> DTS RSS
Next:  DB2 V9.1 to 9.5  
Author Message
Jackie Smith

External


Since: Oct 25, 2010
Posts: 1



(Msg. 1) Posted: Mon Oct 25, 2010 4:39 pm
Post subject: Exception reports
Archived from groups: microsoft>public>sqlserver>dts (more info?)

Hi there,
I'm not sure whether a job or a script is best to do this.
There will be an import of data into one of the databases I support. New
records in this import should be appended to an existing table in my
database. New records added should be sent as an email to certain
recipients.

Also existing records will need to be updated if there are changes in the
imported file. Any changes should be sent via email to recipients again
showing the state of the record before the update and after the update.

Any pointers as what's best to use/ the steps to take.

For new records...
I'm thinking along the lines of create a job to import the records into a
temporary table.
2nd step is to write a query (left-join) that will insert the new
recordsinto another table
If there are new records (how do I check if recordcount > 0??) then fire
email

For changed records...
Use the temporary table above
Join on key fields.
Where there are differences in other fields, export the record to a new
table (how do I get the existing data and the changed data exported one
after the other??)
If there are changed records then fire email

TIA

 >> Stay informed about: Exception reports 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Exception management and Logging for DTS - I'm using a .Net application to execute DTS packages within Sqlserver,I need to have very customizable and powerful Exception maangement systems which loggs different issues happend in the DTS package with my own errorCode. Can somebody give me some..

Printing Reporting Service Reports Programmatically Options - Hello All, I am trying to find a way or best way to automatically print reporting services reports using a Script Task in an SSIS package. Does any one has any suggestions? Thanks

DTS workflow failure - I create a package to call other packages in one workflow ,it's very similar as below: Steps----on success--->step2----on success---->step3 - -----on failure--->step4...

csv to multiple tables - I have a CSV file like this: "fieldValue1","fieldValue2","fieldValue3","fieldValue4" I'd like to create a DTS package which dose the following operation on the CSV file: 1) Inserts "fieldValue1" into ...

Linked SQL Server to Access - Hi, I now this question has been posted a few times, but I did not find an answer. I have a linked server on my SQL server to an access database via a mapped drive on a domain. (2 computers, one with SQL server and the other has the access database) ...
   Database Help (Home) -> DTS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]