473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1111
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_lefebvre at hotmail dot com> wrote in message
news:eU**************@TK2MSFTNGP15.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_lefebvre at hotmail dot com> wrote in message
news:%2****************@TK2MSFTNGP14.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
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...
2
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...
1
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...
10
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...
3
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...
5
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...
1
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...
5
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...
5
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...
2
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.