473,385 Members | 1,942 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,385 software developers and data experts.

netstat to check th SQL connection

in form_load, i will new a sql connection ,fill in the dataset and then
close the connection.
I use Netstat to check the status.
(1)Open the form , The status to the SQL server is "ESTABILISHED"
(2)Close the form, The status is "TIME_WAIT"
(3)WAIT a sec. that thread is disappear .

my question is , I had closed the connection after fill in , WHY the status
still become "ESTABLISHED" ? ,
if the user open 10 forms, there will be 10 thread ???
Does anyone understand my stupid question ? thanks a lot
Nov 29 '05 #1
1 2969
Hi Agnes,
my question is , I had closed the connection after fill in , WHY the status
still become "ESTABLISHED" ? When connection pooling is enable, and a connection is closed , it is
returned to the connection pool. if the user open 10 forms, there will be 10 thread ???

What did you mean by "thread"? If 10 forms of the same app opens
connection at the same time with same connection string, the pool will
supplies them with 10 connections. If connection is not available, the
request will be queued. There is one pool for each connection string.

Nov 29 '05 #2

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

Similar topics

0
by: HiChetu | last post by:
hi All, Connection Pool - Does not check for Server Status. Here is the scenario : 1) SQL Server is up 2) Create a connection pool for a particular connection string by repeatedly...
3
by: Chin Chien Ping | last post by:
Hi, I looking for a solution for how to check if a connection to a remote computer exist or not using vb.net. I 'm writing a program which will request data from a remote sql server. I need...
2
by: Nuno Magalhaes | last post by:
How to check for a closed http socket without losing any data? (MSDN says to send something to server). Somewhere in my code (after sending the http header in plain text) I'm doing a loop with:...
1
by: srinivas | last post by:
Hi, I need to move the file from one system to another system in secured network.For this client is using cisco vpn client.I need to check the cisco vpn connection state before moving the...
0
by: nivas.meda | last post by:
Hi, I need to move the file from one system to another system in secured network.For this client is using cisco vpn client.I need to check the cisco vpn connection state before moving the...
10
by: billie | last post by:
Hi all. I don't know if Python is good for this kind of jobs but I'm wondering if it's possible emulate the "netstat" command in Python. I'd need to know if a certain executable opened a socket...
14
by: martin1 | last post by:
All, I want to check wether db connection/open or not, if not it will post db connection error to user in message box The code is like: Dim objConnection As New SqlConnection _...
6
by: DarkBlue | last post by:
Following code works . My question is can I make it faster ? def activeip(checkip): # if there is any line returned we set activeb to 1 indicating that # this ip is active during a netstat...
1
by: tensi4u | last post by:
Hello, everyone. I began to work with DB2 V8.1 for Linux on debian from last month, I'm beginner to DB2, and I have two questions. First, searched articles related to "number of connection" at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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:
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...
0
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,...
0
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...

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.