problem detaching ,says in use

  • Stop using.

    Go to Current Activity window, processes view, sort by database name, see who is using this very database, log off everyone except for yourself (call 'em first). Yourself, close everything, then open only Query Analyzer, make sure you are not in your database and run the detach statement.

    Yelena

    Regards,Yelena Varsha

  • SPIDStatusLoginHostNameBlkByDBNameCommand
    -------------------------------------------------------------------------------------------------
    1sleepingsa..masterSIGNAL HANDLER
    2BACKGROUNDsa..PMM2LOCK MONITOR
    3BACKGROUNDsa..PMM2LAZY WRITER
    4sleepingsa..PMM2LOG WRITER
    5sleepingsa..PMM2CHECKPOINT SLEEP
    6BACKGROUNDsa..PMM2AWAITING COMMAND
    7sleepingsaFRHG-ESI-TEST.masterAWAITING COMMAND
    8sleepingsaFRHGPURCH31.msdbAWAITING COMMAND
    10RUNNABLEsaFRHGPURCH31.PMM2SELECT INTO

    I ran sp_who2 with the samw idea, I only get my self back, I am in a test environment, no has access? spid 8 and 10 are myself

  • Hi,

    There is something on the server open with sa connection. Could it be Enterprise Manager open through terminal services? I would reboot the server, check that there is no jobs scheduled for data import/export for example and then use just 1 tool to detach. Do use Current Activity window, it will show you what application is trying to connect.

    Regards,Yelena Varsha

  • Put db in single user mode and then try the dettach. 

  • Worked great THANKS!!!!!

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

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