Solved

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

Posted on 2010-08-25
3
681 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

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

Expert Comment

by:JensMig
ID: 33525102
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
ID: 33525158
I am sorry, I hit the wrong tab and therefore the wrong question! Oops! Please ignore!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

717 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