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
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]
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 '
ck9663 2,878
Recognized Expert Specialist
Maybe no connections are left open.
-- CK
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 -
-
-
select spid,HostName,db_Name(dbid),Program_Name,Login_Time,Status
-
from master.dbo.sysprocesses
-
order by hostname
-
-
or
-
-
select * from master.dbo.sysprocesses
-
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 ?
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
--
|
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...
|
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:
|
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?
|
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
| |
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()
|
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.
|
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...
|
by: Raman Pahwa |
last post by:
plz tell me how to check the number of open connections in ASP code.
|
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...
|
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...
| |
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,...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |