473,734 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Number of open connections

83 New Member
Hi,

We are using a remotely hosted sql serer 2005 db. We connect to it/run queries etc. using sql server management studio express.

Is there anyway to view the number of open connections using ssmse, in particular we want to see the number that are being left open ?

Thanks in advance
Apr 10 '08 #1
5 8538
deepuv04
227 Recognized Expert New Member
Hi,

We are using a remotely hosted sql serer 2005 db. We connect to it/run queries etc. using sql server management studio express.

Is there anyway to view the number of open connections using ssmse, in particular we want to see the number that are being left open ?

Thanks in advance
hi
use sp_who command to know the details

or use the query

[code=sql]

select spid,hostname,l oginame,cmd,db_ name(dbid) as dbname, status
from master.dbo.sysp rocesses
where datediff(dd,log in_time,getdate ()) = 0
order by hostname
[code]
Apr 10 '08 #2
TimSki
83 New Member
Thanks great advice however when i execute

USE Master
EXEC sp_who

it returns

0,runnable,acce ss2o_Admin,TIM-PC,0,master,SEL ECT,0

and never seems to change although i know others are connected (the site is high usage). TIM-PC is the name of my PC.

Is this because i don't have the right permissions ? btw, not sure if it's relevant but all users connect with the same connection string and username namely 'access2o_Admin '
Apr 10 '08 #3
ck9663
2,878 Recognized Expert Specialist
Maybe no connections are left open.

-- CK
Apr 10 '08 #4
deepuv04
227 Recognized Expert New Member
Thanks great advice however when i execute

USE Master
EXEC sp_who

it returns

0,runnable,acce ss2o_Admin,TIM-PC,0,master,SEL ECT,0

and never seems to change although i know others are connected (the site is high usage). TIM-PC is the name of my PC.

Is this because i don't have the right permissions ? btw, not sure if it's relevant but all users connect with the same connection string and username namely 'access2o_Admin '
hi,
for more details use the following query

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. select spid,HostName,db_Name(dbid),Program_Name,Login_Time,Status 
  4. from master.dbo.sysprocesses
  5. order by hostname
  6.  
  7. or 
  8.  
  9. select * from master.dbo.sysprocesses
  10.  
Apr 11 '08 #5
TimSki
83 New Member
thanks for all this however i did discover it was a permissions problem...

http://forums.microsof t.com/MSDN/ShowPost.aspx?P ostID=301301&Si teID=1

My provider wont grant me the permissions :( so i guess i'm stuffed unless anyone has any other suggestions ?
Apr 11 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5879
by: Mark Harrison | last post by:
We have the situation where it would be convenient if we could support a large number (>1024, possibly in the 2000-3000 range) of client connections. What are our options for this? Many TIA, Mark --
1
2566
by: C Sharp beginner | last post by:
I'm sorry about this verbose posting. This is a follow-up to my yesterday's posting. Thanks William for your reply. I understand it is a good practice to open connections as late as possible and close them as early as possible. My requirement is as follows: I'm developing a class library that will be instantiated by a COM component. My class library contains functions that perform lot of mathematical calculations and read a lot of data...
4
4379
by: Nevyn Twyll | last post by:
I've been working on an asp.net application and everything's been great. But suddenly, whether I'm tyring to use a database on my own machine, or on my server, I'm getting a timeout when trying to open a database connection. The error seems to happen regardless of what ASP.NET app I'm working with/trying to debug. It will open a few connections, Here's the error:
1
1856
by: mike g | last post by:
Hello, I have postgres set to log all connections. I run it on port 5432. I have noticed in the postgres logs that the port being used to connect to the database is logged but never equal to 5432. The ip address recorded is correct but the port number recorded is always a different number each time. This is 7.4.1-3 on cygwin. Has anyone noticed this on other platforms?
3
26663
by: MaRCeLO PeReiRA | last post by:
Hi guys, How can I know about the number of active connections?? (not the maximum allowed, but the number of open connections). Regards, Marcelo Pereira Brasil
2
2479
by: Basel | last post by:
Hi All! I'm having a problem with a growing number of connections. my app generates http requests and reads responses. the app creates large number of threads (100 or more) that generates the requests, this is the code: ServicePointManager.DefaultConnectionLimit = 10; ThreadFunction()
1
1396
by: Asim Qazi | last post by:
Hi i want to get the number of open databse connections in my application, its an asp.net application, is there any workaround for it ? any help would be appriciateable Regards, aSIM.
5
3397
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open left, I always see that there are 2 connections open and in "ESTABLISHED" state. Here is the piece of code that I'm using, please tell where I'm doing it wrong. Since this class is being used at many placed in my actual web based application that...
1
2622
by: Raman Pahwa | last post by:
plz tell me how to check the number of open connections in ASP code.
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.