how to find autogrow status

  • Does anyone know how to quickly find database autogrow status and report on it?

    Tnx

  • check out sys.database_files system view.

    http://msdn.microsoft.com/en-us/library/ms174397(SQL.90).aspx

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • If you are not already somehow tracking this on your own, I believe that the only way (that I know of anyway) is to go to the error log to get this information.

    Something like

    create table #testlog(dt datetime, info varchar(200), errtext varchar(max))

    insert into #testlog

    exec sp_readerrorlog

    select * from #testlog where errtext like '%autogrow%'

    ETA - and this will only work if you have an alert set up to check for Autogrowth. Sorry for not clarifying originally.

  • Robert, sys.database_files will work for SQL 2005, any idea how to implement it with SQL 2000 as well?

  • sysfiles has mostly the same info in 2000

    http://doc.ddart.net/mssql/sql70/sys-f.htm

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

Viewing 5 posts - 1 through 4 (of 4 total)

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