473,698 Members | 2,360 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 8536
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
5878
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
2564
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
4377
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
1851
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
26656
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
2473
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
1393
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
3389
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
2619
by: Raman Pahwa | last post by:
plz tell me how to check the number of open connections in ASP code.
0
8678
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9030
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
8899
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
5861
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
4371
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
4621
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.