473,750 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Number of database connections

Can anyone help me here? VB Net Application with an Access Database
connection (OLEDB), I need (in code) to be able to retrieve the number of
active connections on the database, maybe from more than one PC.

Anyone any ideas?

Cheers,
Tull.
Nov 21 '05 #1
4 1125
Hi Tull ! :O)
I need (in code) to be able to retrieve the number of
active connections on the database, maybe from more than one PC.


What DB are you working with ? Most DBs (like SQL Server and ORACLE to name
a few) offers procedures or views that provides you this kind information...

--
Best Regards
Yanick
Nov 21 '05 #2
Unfortunately an Access 2000/XP database, I don't think this information is
available from the Jet engine.

Cheers,
Tull.

"Zoury" <yanick_lefebvr e at hotmail dot com> wrote in message
news:eU******** ******@TK2MSFTN GP15.phx.gbl...
Hi Tull ! :O)
I need (in code) to be able to retrieve the number of
active connections on the database, maybe from more than one PC.


What DB are you working with ? Most DBs (like SQL Server and ORACLE to
name
a few) offers procedures or views that provides you this kind
information...

--
Best Regards
Yanick

Nov 21 '05 #3
Hi Tull !

see if this helps you
http://support.microsoft.com/default.aspx?id=285822

--
Best Regards
Yanick
Nov 21 '05 #4
Thanks, but I'm not sure this is what I need.

Basically I need to ensure that all OLEDB Connections to the database are
closed correctly, so it's the number of the OLEDB Connection class running
that I need to return, I think!

Cheers,
Tull.

"Zoury" <yanick_lefebvr e at hotmail dot com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi Tull !

see if this helps you
http://support.microsoft.com/default.aspx?id=285822

--
Best Regards
Yanick

Nov 21 '05 #5

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

Similar topics

4
18339
by: sumithradevi | last post by:
Hello Friends, I am getting the following error. java.sql.SQLException: ORA-00020: maximum number of processes (100) exceeded I am closing all my resultsets and all my connections in the try block. should i close ResultSets and Connections in the catch block aswell?.
2
2631
by: Do Park via SQLMonster.com | last post by:
Hello all, A software that connects SQL Server via ODBC uses 12 process at the same time when I look at the process info(panel). Is it possible to increase number of process (or thread) for a specific database? Is there any parameter? Thanks in advance, Do.
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?
10
5941
by: cdngo | last post by:
Hi all, I'm new with DB2 database, and working on AIX 5.2 with DB2 v8 Just a question regarding the similaneous connection. I'd like to know how many simultaneous connections that I have in a given time! Do you know how to get this information? Thanks for your help Doug
3
10296
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database I use System.Data.Common.DBConnection and .DBCommand. How can I keep aware from connection losses (network not availeable, db-server not available...)? Are there any strategies to detect this broken connections, and how can I
5
12262
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
1
1612
by: Philipp Ineichen | last post by:
Hello, The 'maxconn' has been removed according to IBM documentation APAR JR18223. The question is how can the 'maxconn' be configured and what is the default value? Is there a corresponding configuration parameter on the DB2 Server? - PI -------------------- Philipp Ineichen www.skagitsystems.ch
5
2176
by: John | last post by:
I have an ASP.NET 2.0 application developed in VB.net, that accesses an Microsoft Access database. When the database is on the same IIS server all works just fine. BUT when it tried to access the same database on a different server I get a permission error. I've created a shared drive on the other server and give it permission with all rights, as well as the Access database. BUT no matter how I set up the connection string in my app, I...
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...
2
8647
by: kai | last post by:
Hi, I use VB 2008 as front end, SQL Server 2005/2008 as back end, I want control number of cucurrent users log on to the database, I am trying to use a stored procedure, but it did not work. Is this possible? Please help. Thanks Kai
0
8999
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
9394
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
9338
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
8260
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...
0
6080
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
4712
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
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2223
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.