Link to home
Start Free TrialLog in
Avatar of Marcus Aurelius
Marcus AureliusFlag for United States of America

asked on

SQL Mgmt Studio - ACTIVITY MONITOR >> LOCKS BY OBJECT....?

Experts,

I'm having some issues with our Application "locking-up" on certain menus. Our DB is SQL Server 2005. In my research I've noticed that in SQL Server Management Studio there it an Activity Monitor.

What does the LOCKS BY OBJECTS tell me...? Are these ALL locks that have occured regardless of status,....OR.... is this a listing of CURRENT LOCKS on the system?
ASKER CERTIFIED SOLUTION
Avatar of aelliso3
aelliso3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JensMig
JensMig

You can use the XmlWriter class to create your XML.

You dont need to write it into a file, you can redirect it into memory if you like.

using (XmlWriter writer = XmlWriter.Create("some.xml"))
{
    writer.WriteStartDocument();
    writer.WriteStartElement("RootElement");

    writer.WriteString("This is nice & good coding. Even <This> works well");

    writer.WriteEndElement();
    writer.WriteEndDocument();
}

Open in new window

I am sorry, I hit the wrong tab and therefore the wrong question! Oops! Please ignore!