alert if database it larger then xxxGB

Last post 04-22-2008 4:17 AM by satya. 7 replies.
Page 1 of 1 (8 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 04-17-2008 1:42 PM

    alert if database it larger then xxxGB

    Hi,

    i want to be alerted when any of my databases is more the xxxGB.

    i know one method to do that and it is with the alerts in the SQL agent Performance condition ,but with this alert when i choose to monitor on all databases the results is that i can't see the database name in the alert when i get it.

    do you know a better way to achieve that ?

    There is always something new to learn...
  • 04-17-2008 2:04 PM In reply to

    Re: alert if database it larger then xxxGB

     Did you get ID database?

     

    Luis Martin
    Moderator
    SQL-Server-Performance.com

    When the power of love overcomes the love of the power, the world will know peace.

    J. Hendrix


    All postings are provided “AS IS” with no warranties for accuracy.
  • 04-17-2008 3:13 PM In reply to

    Re: alert if database it larger then xxxGB

    no.i don't receive any identification on what is the alert,only by the Alert name that i give when i create the alert.

    There is always something new to learn...
  • 04-18-2008 3:00 AM In reply to

    Re: alert if database it larger then xxxGB

    Hi,

    you can configure alert for specific database if it grows beyond certain size, go to SSMS->SQL Server Agent->Alert->New Alert

    hth         

    Hemantgiri S. Goswami | MS SQL Server MVP
    -------------------------
    "Humans don't have Caliber to PASS TIME , Time it self Pass or Fail Humans" - by Hemantgiri S. Goswami

    http://hemantgirisgoswami.blogspot.com
    http://forums.surat-user-group.org/

    View Hemantgiri S. Goswami's profile on LinkedIn

    Disclaimer: This post is provided as is, for the sake of knowledge sharing only.
  • 04-18-2008 5:33 AM In reply to

    Re: alert if database it larger then xxxGB

    i know that.

    but i want to monitor all databases.

    There is always something new to learn...
  • 04-22-2008 1:24 AM In reply to

    Re: alert if database it larger then xxxGB

    You can configure an alert for the All Databases as well, or similarly you can create a job and schedule it to run daily

    Hemantgiri S. Goswami | MS SQL Server MVP
    -------------------------
    "Humans don't have Caliber to PASS TIME , Time it self Pass or Fail Humans" - by Hemantgiri S. Goswami

    http://hemantgirisgoswami.blogspot.com
    http://forums.surat-user-group.org/

    View Hemantgiri S. Goswami's profile on LinkedIn

    Disclaimer: This post is provided as is, for the sake of knowledge sharing only.
  • 04-22-2008 1:35 AM In reply to

    Re: alert if database it larger then xxxGB

    i don't want to create for every database an alert.

    i want to create one script that will run twice a day and will check every database size.if the size i greater then 40GB then send email alert.

    i start to write a script with cursor but then i was stuck with the code.

    There is always something new to learn...
  • 04-22-2008 4:17 AM In reply to

    • satya
    • Top 10 Contributor
    • Joined on 11-05-2002
    • United Kingdom
    • Posts 22,567
    • Microsoft MVP

    Re: alert if database it larger then xxxGB

    Like mentioned here http://sqlforums.windowsitpro.com/web/forum/messageview.aspx?catid=74&threadid=89885&enterthread=y in your post, you can put this script and write a logic to send email using a scheduled job.

    -Satya S K J

    SQL Server MVP



    Knowledge is Power, you will gain by sharing it. SSQA.net - Invisible contributions to the users & visible success in SQL Community.
Page 1 of 1 (8 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.