How do i know if database shrink is running

Posted on 2006-04-24
Last Modified: 2006-11-18
hello all

our support guys dialled in and are running a shrink on our mdf file.
its been running since this morning but still not finished.
basically i know nothing about SQL but can someone let me know how to see if this shrink is still running that it hasnt stopped or hung.

in processes i can see "sqlservr.exe" running and is fluctuating between 2 and 6 percent on CPU usage and using over 1.7Gb on mem.
is this it or not.

oh its sql 2000  

Question by:SoHandy
    LVL 21

    Accepted Solution


    run that in query analyzer and look in the command column for (I think) dbcc shrinkdatabase or shrinkfile
    LVL 28

    Assisted Solution

    run this query and check the status field.
    select * from master.dbo.sysprocesses
    where program_name like'MS SQLEM%' and cmd like 'DBCC%'

    Author Comment

    hey guys

    the operations did hang on us yesterday it was taking too long.
    our support guys just stopped it in task manager.
    i am going to give you bith points as i cant test it now.
    thanks for the help

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    I recently came across an interesting Question In EE ( and was puzzled about how to achieve that using SSIS out of the box tasks, which was i…
    This is my first ever Article on EE or elsewhere; therefore, please bear with me if I have some discrepancies in my writing. I read many articles and questions related to "how to pass values to SSIS packages at run-time?"  Hence, this common ques…
    Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
    Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

    737 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

    21 Experts available now in Live!

    Get 1:1 Help Now