Solved

Best methodology for determining who is using a shared SQL database.

Posted on 2014-10-24
3
137 Views
Last Modified: 2014-10-29
Client has an application with an executable that may be run from anywhere - no registry footprint at all.  Need to determine who is in the application.  The back end SQL database is shared among all users.
0
Comment
Question by:branuda
[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
3 Comments
 
LVL 51

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 167 total points
ID: 40402308
You can run the following query that returns all actual connections.
sp_who2

Open in new window

The ProgramName column should inform you who's connected by the application.
0
 
LVL 75

Assisted Solution

by:Aneesh Retnakaran
Aneesh Retnakaran earned 167 total points
ID: 40402310
if the application is directly connecting to sql (not using an application /web server ) then, yoi can run sp_who2 and see the host name
0
 
LVL 34

Accepted Solution

by:
ste5an earned 166 total points
ID: 40402350
Need to determine who is in the application.

This is not possible. Cause Currently connected and who is in the application are two different things. Maybe in reality nearly the same and sufficient, but not congruent.

But the others already showed you how to determine who is currently connected to your SQL Server database.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
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
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

622 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