473,657 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

number of users connected to a SQL Database

Hi all,
is it possible to get the numer of users, who are connected at the same time
to the specified SQL Database and how do I get this Information?
thanks
EW

--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1
Nov 17 '05 #1
3 1988
you have to run a stored procedure sp_who.

more details:

http://msdn.microsoft.com/library/de...wa-wz_3v8v.asp

byez

sorry for my english :-)
--
imperugo (exCartman)
myblog : http://imperugo.blogspot.com
"E. W via DotNetMonster.c om" <u13831@uwe> wrote in message
news:5773a7b370 7e2@uwe...
Hi all,
is it possible to get the numer of users, who are connected at the same
time
to the specified SQL Database and how do I get this Information?
thanks
EW

--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1

Nov 17 '05 #2
....Or use the PerformanceCoun ter provider in Windows. It reports a TON of
information about SQL including of course concurrent users. I actually
develop on a package that does this if you have a need to do it for the
enterprise. http://www.CanyonNetworks.net .

Craig

"E. W via DotNetMonster.c om" <u13831@uwe> wrote in message
news:5773a7b370 7e2@uwe...
Hi all,
is it possible to get the numer of users, who are connected at the same
time
to the specified SQL Database and how do I get this Information?
thanks
EW

--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1

Nov 17 '05 #3
Thank you, it seems to fit my needs if hostname is the PC-name of the
connected user.
Your english is as good as mine, I am german.
EW

imperugo wrote:
you have to run a stored procedure sp_who.

more details:

http://msdn.microsoft.com/library/de...wa-wz_3v8v.asp

byez

sorry for my english :-)
Hi all,
is it possible to get the numer of users, who are connected at the same
time
to the specified SQL Database and how do I get this Information?
thanks
EW


--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2385
by: Ed Swartz | last post by:
I installed SP4 for Windows 2000. Prior to the upgrade my system was at SP3 and I was able to run ASP scripts from my browser just fine. For exmaple: http://127.0.0.1/Experiments/ASP/EXP_ASP_TypeName.asp Post-Upgrade the browser hangs forever with this in the status bar:
5
1663
by: Andy Davis | last post by:
I have a two tables, Users and Requests, the latter which displays the daily log on's of 20 users. Both tables are related by a one-to-many relationship in the Requests table via the UserId field. I want to run a query that when I enter a date shows all the users that DID NOT connect for that particular day. For example, say user id's 1 and 2 were on the system on a particular day but user id's 3 - 20 were not, how do I display just...
4
1801
by: ken | last post by:
Is there a way to check if access has not been used for say 10 minutes and then to close the front end? I was just thinking that that might be a good idea since a lot of people like having their frontends alway open and that is not good...
5
12258
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected to the database. SQLSTATE=57030. Background: I created a linked server to DB2 8.1 database which called GRR_DB2Server. In my stored procedure p_FetchRawData, I need to read some data from this linked server GRR_DB2Server and insert them into
4
1774
by: Keithb | last post by:
A web site uses a SQL Server instance on another box and it takes a long time to establish a connection. Is there any way to make the web site stay connected to SQL server at all times, even though there are no users? Thanks, Keith
1
2116
by: Smalley | last post by:
Need some help please. Have this code and for some reason it is not working correctly. I am not receiving errors, just the table is not being populated at all. I have created the tbl and the frm and when I open up the db, it is not recording the number of users. I am still new to VBA and would appreciate some assistance. I am running Access 2003 Thanks,
8
3739
by: Mike P | last post by:
What would be the best way of counting the number of users who are currently logged on to a website? I am making the users login against a database of valid users. Would the best way be to add a bool field to the table and set each user to 1 if they are logged in, and 0 if they are not logged in? *** Sent via Developersdex http://www.developersdex.com ***
1
3518
by: esource | last post by:
We have a existing backup, re-index job that runs at night on an existing database that is now accessed by web users 24/7. Problem is that one of the steps is to kill all users before backup starts so it kills any transactions that are happening at that time question is... Can users be connected during a backup? Will removing the kill users step slow the backup alot? any other suggestions would be appreciated. thanks
0
8319
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8837
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...
1
8512
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
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6175
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
5638
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
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
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
1969
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.