Solved

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

Posted on 2014-10-24
3
133 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 50

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

751 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