Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Waring alters when the database (files MDF, NDF & LDF) reaching the MAX size. Expand / Collapse
Author
Message
Posted Friday, February 15, 2013 5:29 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
HI Frnds,

I need help on setting up alters when the database (files MDF, NDF & LDF) reaching the MAX size.

If anybody have some thing please share, I am trying to lookup in google and I didnt get anything.
If anybody have good post on how to implement it please post it.

Thanks in advance.
Post #1420834
Posted Saturday, February 16, 2013 6:35 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, September 11, 2014 5:57 AM
Points: 85, Visits: 401
Ranzz (2/15/2013)
HI Frnds,

I need help on setting up alters when the database (files MDF, NDF & LDF) reaching the MAX size.

If anybody have some thing please share, I am trying to lookup in google and I didnt get anything.
If anybody have good post on how to implement it please post it.

Thanks in advance.


What do you mean by "setting up alters"? Do you mean "alerts" when the files are nearing max size?
Or when the free space on the drive is getting low?



______________________________
AJ Mendo | @SQLAJ
Post #1420888
Posted Saturday, February 16, 2013 11:01 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 7:56 AM
Points: 3,941, Visits: 7,163
You can set up alerts under the SQL Server agent, I believe the type is "SQL Server Performance Condition Alert" and it will allow you to set thresholds for each database. I can't remember if the value counter allows a percentage or if it needs to be a literal value. You should be able to find that out in BOL

______________________________________________________________________________
"Never argue with an idiot; They'll drag you down to their level and beat you with experience"
Post #1420907
Posted Saturday, February 16, 2013 2:26 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
Thanks SQLAJ

yes i mean by alerts..sorry misspelled.

when the files are nearing max sizes. how to implement it.
If there is any good blog post, how to set up please forward it.

thanks.
Post #1420933
Posted Sunday, February 17, 2013 7:37 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, September 11, 2014 5:57 AM
Points: 85, Visits: 401
Ranzz,

Take a look at this post. It has some code you can use and shows some examples of alerts.
http://www.sqlmag.com/blog/practical-sql-server-45/sql-server-2012/disk-space-monitoring-143552



______________________________
AJ Mendo | @SQLAJ
Post #1420979
Posted Monday, February 18, 2013 9:31 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
Good Post AQLAJ,

It give information on Drive Spaces at certain threshold.

But, I am looking at a threshold alerts when the database (files MDF & LDF) reaching the MAX size.

Please any help frnds..! Thanks in Advance.
Post #1421275
Posted Monday, February 18, 2013 11:10 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, September 11, 2014 5:57 AM
Points: 85, Visits: 401
Use something like this script to monitor the size and free space of the files.
Setup a job that runs everyday/week insert into a database to monitor/track over time, send you an email or both.

SELECT
[name]
, [physical_name]
, CAST(([size] / 128.0) AS decimal(18,2)) AS FileSizeInMB
, CAST((fileproperty([name],'SpaceUsed')) / 128.0 AS decimal(18,2)) AS SpaceUsedInMB
, CAST((([size] - fileproperty([name],'SpaceUsed')) / 128.0) AS decimal(18,2)) AS FreeSpaceInMB
FROM sys.database_files



______________________________
AJ Mendo | @SQLAJ
Post #1421306
Posted Monday, February 18, 2013 12:45 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
I am that confident on creating my own.

Can one please help me providing some documention how to implement it.
Post #1421329
Posted Monday, February 18, 2013 2:02 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 10:16 AM
Points: 2,121, Visits: 3,210
Instead of constantly trying to adjust the max size, I'd suggest setting the max to "UNLIMITED", then monitoring and alerting for every file growth occurence instead.

SQL DBA,SQL Server MVP('07, '08, '09)

Carl Sagan said: "There is no such thing as a dumb question." Sagan obviously never watched a congressional hearing!
Post #1421348
Posted Monday, February 18, 2013 3:57 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
It cant be possible to set unlimited growth.

So, that is the reason, I am looking for some thing that will help us.


Post #1421363
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse