How to check if a database is being used?????

  • this one looks interesting@!! I will dig in here and see what is under the covers so I understand it!! Thank you!!!!:-P


    Thank you!!,

    Angelindiego

  • Hmm, yes I did rather forget the explanation there, didn't I?

    It's pretty straight-forward: every connection takes a special Shared lock at the database level, regardless of whether a query is executing or not. This is how SQL Server knows whether anyone is 'in' the database or not (some operations require no other sessions in the database). The join is just to check that the connection session belongs to a user, not the system itself.

  • Thank you for the explanation Paul....MUCH appreciated!!!


    Thank you!!,

    Angelindiego

Viewing 3 posts - 31 through 32 (of 32 total)

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