Solved

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

Posted on 2010-08-25
3
676 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:MIKE
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
aelliso3 earned 500 total points
Comment Utility
that is current locks ... basically the same as running exec sp_lock
0
 
LVL 1

Expert Comment

by:JensMig
Comment Utility
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

0
 
LVL 1

Expert Comment

by:JensMig
Comment Utility
I am sorry, I hit the wrong tab and therefore the wrong question! Oops! Please ignore!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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

743 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

16 Experts available now in Live!

Get 1:1 Help Now