Networking Forums

Networking Forums > Computer Networking > Windows Networking > Close TCP connections ?

Reply
Thread Tools Display Modes

Close TCP connections ?

 
 
wpher56
Guest
Posts: n/a

 
      04-23-2009, 08:37 AM
Hi
My SQL Server 2005 connects to an Oracle Server, but there is a problem: the
TCP connections are left opened (ESTABLISHED). By the end of the day, I have
more than a thousand opened TCP connections! Until we find the cause of this
behaviour, I would like to create a small batch file that would run at 4am
and that closes the TCP connections of the previous day. Could someone help
me doing this ?
Many thanks in advance
Pierrot

 
Reply With Quote
 
 
 
 
Anthony [MVP]
Guest
Posts: n/a

 
      04-23-2009, 10:06 PM
shutdown -r
or net stop mssqlserver,
You might do best to ask this in a SQL Server newsgroup, where you could
find the ways of closing open connections, e.g
http://support.microsoft.com/kb/171224/en-us
Anthony,
http://www.airdesk.com


"wpher56" <(E-Mail Removed)> wrote in message
news:uHAXL7#(E-Mail Removed)...
> Hi
> My SQL Server 2005 connects to an Oracle Server, but there is a problem:
> the
> TCP connections are left opened (ESTABLISHED). By the end of the day, I
> have
> more than a thousand opened TCP connections! Until we find the cause of
> this
> behaviour, I would like to create a small batch file that would run at 4am
> and that closes the TCP connections of the previous day. Could someone
> help
> me doing this ?
> Many thanks in advance
> Pierrot
>

 
Reply With Quote
 
wpher56
Guest
Posts: n/a

 
      04-24-2009, 04:50 AM
Thank you for your information. Rebooting the server or restarting SQL
Server would be a "last chance" option. The reason why I ask this question
here is that because the TCP connection remains opened even after I close
SQL Server Management Studio. So it seems that it's a Windows Server
problem, not an SQL Server one.
Pierrot


"Anthony [MVP]" <(E-Mail Removed)> wrote in message
news:%23gd65%(E-Mail Removed)...
> shutdown -r
> or net stop mssqlserver,
> You might do best to ask this in a SQL Server newsgroup, where you could
> find the ways of closing open connections, e.g
> http://support.microsoft.com/kb/171224/en-us
> Anthony,
> http://www.airdesk.com
>
>
> "wpher56" <(E-Mail Removed)> wrote in message
> news:uHAXL7#(E-Mail Removed)...
>> Hi
>> My SQL Server 2005 connects to an Oracle Server, but there is a problem:
>> the
>> TCP connections are left opened (ESTABLISHED). By the end of the day, I
>> have
>> more than a thousand opened TCP connections! Until we find the cause of
>> this
>> behaviour, I would like to create a small batch file that would run at
>> 4am
>> and that closes the TCP connections of the previous day. Could someone
>> help
>> me doing this ?
>> Many thanks in advance
>> Pierrot
>>


 
Reply With Quote
 
Anthony [MVP]
Guest
Posts: n/a

 
      04-24-2009, 07:24 PM
I thought you were referring to SQL Server connections rather than
Management Studio connections. The link I gave you shows how to kill SQL
Server connections, in SQL Server,
Anthony
http://www.airdesk.com

"wpher56" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you for your information. Rebooting the server or restarting SQL
> Server would be a "last chance" option. The reason why I ask this question
> here is that because the TCP connection remains opened even after I close
> SQL Server Management Studio. So it seems that it's a Windows Server
> problem, not an SQL Server one.
> Pierrot
>
>
> "Anthony [MVP]" <(E-Mail Removed)> wrote in message
> news:%23gd65%(E-Mail Removed)...
>> shutdown -r
>> or net stop mssqlserver,
>> You might do best to ask this in a SQL Server newsgroup, where you could
>> find the ways of closing open connections, e.g
>> http://support.microsoft.com/kb/171224/en-us
>> Anthony,
>> http://www.airdesk.com
>>
>>
>> "wpher56" <(E-Mail Removed)> wrote in message
>> news:uHAXL7#(E-Mail Removed)...
>>> Hi
>>> My SQL Server 2005 connects to an Oracle Server, but there is a problem:
>>> the
>>> TCP connections are left opened (ESTABLISHED). By the end of the day, I
>>> have
>>> more than a thousand opened TCP connections! Until we find the cause of
>>> this
>>> behaviour, I would like to create a small batch file that would run at
>>> 4am
>>> and that closes the TCP connections of the previous day. Could someone
>>> help
>>> me doing this ?
>>> Many thanks in advance
>>> Pierrot
>>>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Close Stuart Wireless Networks 0 06-01-2010 10:05 AM
CLOSE_WAIT issue (Software fails to close connections) flarosa Linux Networking 1 03-19-2008 10:33 PM
Close Established Connections From The Command Line לורן שייפר Windows Networking 0 08-04-2005 12:00 PM
Can't close port 389 Ethan Trewhitt Linux Networking 2 04-03-2004 06:18 PM
Network connections between XP and W98 machines don't always close readily Bruiser Windows Networking 0 10-12-2003 11:43 PM



1 2 3 4 5 6 7 8 9 10 11