SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Compare data in a specific report before and after load


Compare data in a specific report before and after load

Author
Message
lukaszpiech
lukaszpiech
Say Hey Kid
Say Hey Kid (670 reputation)Say Hey Kid (670 reputation)Say Hey Kid (670 reputation)Say Hey Kid (670 reputation)Say Hey Kid (670 reputation)Say Hey Kid (670 reputation)Say Hey Kid (670 reputation)Say Hey Kid (670 reputation)

Group: General Forum Members
Points: 670 Visits: 168
Hello,
I'm not sure if this is the right place to post my topic but i hope that it is.
Here is my problem:
I need to check if values in a specific report haven't changed after data load. So i came up with this idea:
1. I will create a job
2. In one of the steps i want to run sql query that returns all necessary values that resides in the report to the temporary table. Next, in the same step, i want to load data. After that, still in the same step, i want to run the same query one more time, but values will by multiply by -1, and insert them to second temporary table. Then i want to UNION ALL both tables and sum values in each column. If no values are returned then this is ok but if some values<>0 are returned then i want to send a mail notification. That's it

I would be grateful if someone could take a look at this idea and maybe help me to improve task that i need to accomplish. Another, better aproach maybe?
Best regards!
Lukas
Steve Jones
Steve Jones
SSC Guru
SSC Guru (350K reputation)SSC Guru (350K reputation)SSC Guru (350K reputation)SSC Guru (350K reputation)SSC Guru (350K reputation)SSC Guru (350K reputation)SSC Guru (350K reputation)SSC Guru (350K reputation)

Group: Administrators
Points: 350150 Visits: 20195
Will work and a creative solution. I've done something similar with a real table, but using a SPID column to ensure I can load values from a report for a specific user and query them later in the process.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search