SQL Mail and Replication

  • Hello guys!!

    I'm using MSDE as Publisher/Distributor and SQL Server 2000 as Subscriber.

    Now i want to configure SQL Mail to send me an email when replication fails!!

    HOw can i do this?

    This is done in the Publisher or in the Subscriber? ( MSDE does not support SQL Mail!!!)

     

    Thanks,

    Cláudia


    Regards,

    Cláudia Rego

    www.footballbesttips.com

  • Is it a pull subscription running at the subscriber ?   I just modify the SQL agent job on the subscriber to use email notification when the job fails

  • No.

    It's a push subscription!

    Cláudia


    Regards,

    Cláudia Rego

    www.footballbesttips.com

  • How can i configure the SQL agent job on the subscriber to use email notification when the job fails???

    Any article/tutorial about this??

    Thankx

    Cláudia


    Regards,

    Cláudia Rego

    www.footballbesttips.com

  • Perhaps you can put a second step into your push subscription job. If the replication at step one fails, then your new step 2 won't happen. Step 2 writes a completion record to your subscriber. Your subscriber looks for it, and sends an email if it's not there.

    I didn't think this out much .....    but you get the idea.

  • Ok.

    I got the ideia.

    But i use wizards to configure the replication...

    HowTO implement this ideia??

    Thankz

    Claudia


    Regards,

    Cláudia Rego

    www.footballbesttips.com

  • After you're finished configuring replication, SQL will create a regular SQL Agent job. You can then edit that job just like any other job to add an additional step.

    A simpler solution might be to make a pull subscription instead of a push subscription. Then the job will run at your subscriber, which does have email, right ?  If so, you can just use regular SQL notification to alert you if the job fails.

  • Ok!

    I will try!

    Thanks,

    Cláudia

     

    PS- Can you see my other post??

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=7&messageid=227972


    Regards,

    Cláudia Rego

    www.footballbesttips.com

  • I saw it already, but didn't have any ideas about it.

  • Thanks anyway.

    Cláudia


    Regards,

    Cláudia Rego

    www.footballbesttips.com

  • homebrew01 said:

    A simpler solution might be to make a pull subscription instead of a push subscription. Then the job will run at your subscriber, which does have email, right ?  If so, you can just use regular SQL notification to alert you if the job fails.

    I tried a pull subscription but when I look at publications from registered servers i can't find any.

    The publication i have made has enabled anonymous pull subscriptions.

    Also i'm using the same login for both servers (sa  + password) and this login is part of the PAL.

    What is it wrong?

    Thankx,

    Cláudia


    Regards,

    Cláudia Rego

    www.footballbesttips.com

  • Hmmmm   that's odd ......  Do you see the server, but not the publications ??   Or do you not even see the server ?  Are they on the same domain ?

  • I can see the server.

    I cann't see the publication!!!

    They aren't in the same domain.

    Cláudia


    Regards,

    Cláudia Rego

    www.footballbesttips.com

  • Have you read this ?

    http://support.microsoft.com/default.aspx?scid=kb;en-us;321822

    I had a problem a while back caused by the publisher being registered with the local name, not the actual server name.

    When setting up a subscriber on the Subscriber, log on the the server itself, and make sure the Publisher is referred to as the actual server name in Enterprise Manager, not a local "nickname".  Modify the host file or DNS if this is not the case.

    I hope I'm not leading you too far astray .....

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic. Login to reply