Automating a SQL query

Tags:
Microsoft Outlook
SQL
SQL Query
I want to run a SQL query automatically and getting the output in Outlook from remote desktop daily. How do I automate it?


Software/Hardware used:
SQL, Oracle SQL db, Remote desktop, outlook
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    You can set it up as an Agent Job on the server to run daily. Are you having issues with that or with the SQL code itself. Post your code if that is the case.
    132,840 pointsBadges:
    report
  • reckonankit
    Hey check out this forum post may be it helps you
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=155272
    3,295 pointsBadges:
    report
  • Elizine
    Create a step and insert your statement inside. Then schedule it.
    1,145 pointsBadges:
    report
  • carlosdl
    If you are using Oracle, as the question tags suggest, you can use the database scheduler to create a job that runs daily.  This job should call a stored procedure or function that executes your query.

    By getting the output in Outlook I assume you mean to send an e-mail (not sure how remote desktop comes into play here).  If that is the case, you can use the UTL_SMTP package.
    84,745 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: