Keeping Track of Data on a Report

Posted on 2011-05-04
Medium Priority
Last Modified: 2012-06-27
In VFP I run a SELECT on Orders....

Then another SELECT * FROM cQuery WHERE cQuery.Order NOT IN (SELECT SentOrders.Order FROM SentOrders.DBF) into Cursor cNewRA

IF Count > 0
Select SentOrders
Append from dbf(cNewRA)

I run this every hour and with the hits I get I comare to the DBF from the last hour and if any new ones I can Email that out with the new orders
nothing happens until the next hour it runs

My question is how do I code this in SQL Server r2 so it can have a Table to store SentOrders and I can compare the new SELCT to it every hour and if there is new records send in EMAIL and update the SentOrders Table

Question by:jaymz69
LVL 22

Accepted Solution

Nico Bontenbal earned 2000 total points
ID: 35690873

Author Closing Comment

ID: 35690977
Looks like what I need.


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In this article I will describe the Detach & Attach 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.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

864 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