Solved

SQL 2008

Posted on 2011-09-21
2
204 Views
Last Modified: 2013-11-05
I have a database on the same server as 2 applications that use the DB. Is there any way i can find out how many connections there are from the application to the db?

Running into performance issues with one of the applications but not the other.

0
Comment
Question by:Epic7
2 Comments
 
LVL 9

Accepted Solution

by:
DrewKjell earned 500 total points
ID: 36576545
SELECT db_name(dbid) as DatabaseName, count(dbid) as NoOfConnections,
loginame as LoginName
FROM sys.sysprocesses
WHERE dbid > 0
GROUP BY dbid, loginame

You won't necessarily be able to tell which connections are from which application if you use the same DB Credentials however.

Drew
0
 
LVL 6

Expert Comment

by:jorgedeoliveiraborges
ID: 36576963
sp_who 'account1'
sp_who 'account2'
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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 INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

746 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

9 Experts available now in Live!

Get 1:1 Help Now