Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2007
    Posts
    2

    Unanswered: Deleting old unused database issue

    I have an old DATABASE that is not more in use , so I want to drop that database.
    But before that I want to check that is there any application running on it or not.

    can any one suggest me how to do this?

    thanks

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Simplest is execute sp_who2. That will tell you if there are any current connections. If you need something more bullet proof then you will need to audit connections over a time period. Or you could try a scream test if it is not critical - which presumably it is not since you are contemplating dropping it.

  3. #3
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    Use sql profiler and let it dump the results to a table and query that

    Most of my servers are dedicated to a single database though

    Just make sure you have a current dump

    Now a soapbox issue

    I like to have sproc only access to my databases, and each sproc has sproc logging, so I know everything that's going on
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  4. #4
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Quote Originally Posted by pootle flump
    ...Or you could try a scream test...
    One of my phrases has entered the public lexicon!
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

  5. #5
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    There'll be scads of them soon I'm sure.

  6. #6
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    The "scream test" is one of my best, but the "Boxers vs Briefs solution" is more colorful.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •