Schedular in MSSQL 2000

Posted on 2007-08-01
Last Modified: 2010-03-19

I am using MSSQL 2000

I want to set a schedular in the SQL which checks the data in the table and filter all records from the table and send the emails to the person

How this can be done

Question by:tia_kamakshi
    LVL 21

    Expert Comment

    Check books online for xp_sendmail, and pay pecial attention to the @Query parameter

    To use SQL Server's mail in SQL 2000 you need a MAPI client installed on the server (typically Outlook) and a Profile.

    There are alternative mail-sending options.

    Do you need help on the setting up the query to get the records you need, or jsut the mail part?

    Author Comment

    Thanks for your reply.

    Yes, I have never used this kind of functinality.

    I read at

    This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

    I have outlook installed on my system. Is this sufficeint to  use MAPI client and a Profile. What are these.

    Please help me in configuring the things.

    And what are the best alternative methods you have

    Thanks allot

    LVL 21

    Accepted Solution

    Outlook IS a MAPI client.  Log onto your server directly as the account that will be running the job, and connect to your exchange server.  That will force you to create a profile (or create it by default..I forget)

    check out XP_sendmail in Books Online....they explain it better than I do

    Author Comment


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    Read about achieving the basic levels of HRIS security in the workplace.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now