Showing posts with label various. Show all posts
Showing posts with label various. Show all posts

Wednesday, March 28, 2012

Netstat shows Port 1433 Activity

When I run Netstat it shows many connections from Port 1433 on my server to
various ports on seemingly random computers. SQL Profiler and Enterprise Man
ager do not show logins or processes that correspond to this activity. Howev
er Task Manager does show increased memory and CPU time for sqlservr.exe As
time goes on the number of netstat connections increases until I reboot the
server.
I have SP3 and also disable Port 1434.
I don't know if this is related but if I Stop and then Start MSSQLSERVER Ser
vice, then SQL doesn't seem to work until I reboot the Server.
Does anyone know what is causing these network connections? I plan to use IP
SEC to filter certain IPs and Ports to reduce this but I would like to under
stand the problem better before I try to solve it.Netstat should show you only valid IP addresses connected to 1433 on your
server.
You can use PortQuery or Port reporter to validate this as well.
832919 New features and functionality in PortQry version 2.0
http://support.microsoft.com/?id=832919
Is SQL Server behind a firewall?
Are you using Standard SQL Security ?
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||Kevin,
Thanks for your response.
Downloaded Port Reporter. It stated that the server did not provide process
mapping. Downloaded TCPView.
At the time I ran TCPView, instead of the usual connections on port 1433, t
here were many (about 25) established connections on port 1025, some from IP
addresses on the server that should not be establishing connections. All of
these were associated with msdtc.exe. I killed a couple of these processes.
When I killed the 2nd all the remaining disappeared. What does this indicat
e?
When I have observed many connections on port 1433 the state is usually WAIT
_STATE or FIN_2 something.
The server is a leased server at an ISP (Interland) that I administer remote
ly via Terminal Services. There are 2 NICs: 1 to their LAN and 1 to the Inte
rnet.
For firewall I hoped to use IPSEC. I assume that 'Standard SQL Security' mea
ns the same to you as to me (passwords, limit user capabilities) and the ans
wer is Yes.
If the connection state is not "ESTABLISHED' does that mean that other devic
es are attempting to connect unsuccessfully? Could these be port scanner vir
uses or similar?
The msdtc.exe ESTABLISHED connections caused me more concern. Does that mean
my server and another device were 'handshaking' or exchanging data?
Mike
quote:
Originally posted by Kevin McDonnell [MSFT]
Netstat should show you only valid IP addresses connected to 1433 on your
server.
You can use PortQuery or Port reporter to validate this as well.
832919 New features and functionality in PortQry version 2.0
http://support.microsoft.com/?id=832919
Is SQL Server behind a firewall?
Are you using Standard SQL Security ?
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

|||Previous posting:
At the time I ran TCPView, instead of the usual connections on port
1433, there were many (about 25) established connections on port 1025,
some from IP addresses on the server that should not be establishing
connections. All of these were associated with msdtc.exe. I killed a
couple of these processes. When I killed the 2nd all the remaining
disappeared. What does this indicate?
*** MSDTC is used for Distributed Transactions. If the IP address is not
from a machine
that you "Trust" , then this machine should be blocked.
When I have observed many connections on port 1433 the state is usually
WAIT_STATE or FIN_2 something.
*** TCP sessions have various states. FIN, TIME_WAIT are all valid states.
See:
137984 TCP Connection States and Netstat Output
http://support.microsoft.com/?id=137984
The server is a leased server at an ISP (Interland) that I administer
remotely via Terminal Services. There are 2 NICs: 1 to their LAN and 1
to the Internet.
*** Your provider should also have Firewall to prevent machines
from establishing connections. If they don't you should seriously consider
Publishing SQL from ISA Server.
For firewall I hoped to use IPSEC. I assume that 'Standard SQL
Security' means the same to you as to me (passwords, limit user
capabilities) and the answer is Yes.
*** If you only have certain valid clients that should be connecting to
your SQL Server
accross the internet, then IPSEc or a VPN could be used. Otherwise, since
your server
is open and using Standard Security, you'll be open to password guessing
attacks.
If the connection state is not "ESTABLISHED' does that mean that other
devices are attempting to connect unsuccessfully? Could these be port
scanner viruses or similar?
*** See TCP Connection States kb.
The msdtc.exe ESTABLISHED connections caused me more concern. Does that
mean my server and another device were 'handshaking' or exchanging
data?
*** If your SQL Server is not using Distributed Transactions, Stop the
MSDTC Server Service.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||Kevin,
Thanks for your help.
Since I stopped the MSDTC Server Service the spurious connections on Port 14
33 and 1025 have not reoccurred. I still have some on Port 21 that look like
viruses trying to find an FTP connection. I'll use IPSEC to filter those.
Mikesql

Monday, March 26, 2012

Netapp issues with SQL2000 SP4

Has anyone successfully implemented SQL 2000 or SQL 2005 on Netapps? Main
application is SPS 2007 (5GB of data) and various other smaller DBs (appox
1-2GB, 10 seperate DBs)
We are having major disconnects with SQL when we move to Netapp FAS3020. We
followed the Netapp implementation to the T.
It doesn't matter if we have a IIS 7.0, WebService, or directly quering SQL
on the netapps. It will work for a few hours then all of a sudden, it will
"disconnect". There's nothing in the SQL log. Web services will result in
"Service Unavailable" We will have to totally reboot the SQL Server to get it
back online.
Netapp says it's a Microsoft Issue.
I don't now Netapps.
But you should isolate the problem first. So.
Run Profiler On the SQL server...see if you have time-outs long running
queries?
Check the webserver logs.
Check if youre NIC on database and webserver are not the bottleneck...and
if it is configured okay.
Network performance okay?
Greetz.
"GSoD" wrote:

> Has anyone successfully implemented SQL 2000 or SQL 2005 on Netapps? Main
> application is SPS 2007 (5GB of data) and various other smaller DBs (appox
> 1-2GB, 10 seperate DBs)
> We are having major disconnects with SQL when we move to Netapp FAS3020. We
> followed the Netapp implementation to the T.
> It doesn't matter if we have a IIS 7.0, WebService, or directly quering SQL
> on the netapps. It will work for a few hours then all of a sudden, it will
> "disconnect". There's nothing in the SQL log. Web services will result in
> "Service Unavailable" We will have to totally reboot the SQL Server to get it
> back online.
> Netapp says it's a Microsoft Issue.
>
|||Did all that. The thing is that no errors are generated. Timeouts vary from
under 30 mins to over 4 hrs. There's no pattern and it would stop in random
locations in a test process. Due to the randomness, it's hard to even begin
to start to isolate the issue.
We have a test script that writes and deletes "hello world" to a text field
and that would also generate a failure.
"Hate_orphaned_users" wrote:
[vbcol=seagreen]
> I don't now Netapps.
> But you should isolate the problem first. So.
> Run Profiler On the SQL server...see if you have time-outs long running
> queries?
> Check the webserver logs.
> Check if youre NIC on database and webserver are not the bottleneck...and
> if it is configured okay.
> Network performance okay?
> Greetz.
>
>
>
> "GSoD" wrote:
|||I know you used to have to set a trace flag but I am not sure if that still
holds true or not. Anyway maybe this will help:
http://www.sqlteam.com/article/sql-server-and-network-attached-storage
Andrew J. Kelly SQL MVP
"GSoD" <GSoD@.discussions.microsoft.com> wrote in message
news:FBACC353-992D-49D2-B883-6DDE3DBFEBDF@.microsoft.com...[vbcol=seagreen]
> Did all that. The thing is that no errors are generated. Timeouts vary
> from
> under 30 mins to over 4 hrs. There's no pattern and it would stop in
> random
> locations in a test process. Due to the randomness, it's hard to even
> begin
> to start to isolate the issue.
> We have a test script that writes and deletes "hello world" to a text
> field
> and that would also generate a failure.
> "Hate_orphaned_users" wrote:
sql

Netapp issues with SQL2000 SP4

Has anyone successfully implemented SQL 2000 or SQL 2005 on Netapps? Main
application is SPS 2007 (5GB of data) and various other smaller DBs (appox
1-2GB, 10 seperate DBs)
We are having major disconnects with SQL when we move to Netapp FAS3020. We
followed the Netapp implementation to the T.
It doesn't matter if we have a IIS 7.0, WebService, or directly quering SQL
on the netapps. It will work for a few hours then all of a sudden, it will
"disconnect". There's nothing in the SQL log. Web services will result in
"Service Unavailable" We will have to totally reboot the SQL Server to get i
t
back online.
Netapp says it's a Microsoft Issue.I don't now Netapps.
But you should isolate the problem first. So.
Run Profiler On the SQL server...see if you have time-outs long running
queries?
Check the webserver logs.
Check if youre NIC on database and webserver are not the bottleneck...and
if it is configured okay.
Network performance okay?
Greetz.
"GSoD" wrote:

> Has anyone successfully implemented SQL 2000 or SQL 2005 on Netapps? Main
> application is SPS 2007 (5GB of data) and various other smaller DBs (appox
> 1-2GB, 10 seperate DBs)
> We are having major disconnects with SQL when we move to Netapp FAS3020.
We
> followed the Netapp implementation to the T.
> It doesn't matter if we have a IIS 7.0, WebService, or directly quering SQ
L
> on the netapps. It will work for a few hours then all of a sudden, it will
> "disconnect". There's nothing in the SQL log. Web services will result in
> "Service Unavailable" We will have to totally reboot the SQL Server to get
it
> back online.
> Netapp says it's a Microsoft Issue.
>|||Did all that. The thing is that no errors are generated. Timeouts vary from
under 30 mins to over 4 hrs. There's no pattern and it would stop in random
locations in a test process. Due to the randomness, it's hard to even begin
to start to isolate the issue.
We have a test script that writes and deletes "hello world" to a text field
and that would also generate a failure.
"Hate_orphaned_users" wrote:
[vbcol=seagreen]
> I don't now Netapps.
> But you should isolate the problem first. So.
> Run Profiler On the SQL server...see if you have time-outs long running
> queries?
> Check the webserver logs.
> Check if youre NIC on database and webserver are not the bottleneck...an
d
> if it is configured okay.
> Network performance okay?
> Greetz.
>
>
>
> "GSoD" wrote:
>|||I know you used to have to set a trace flag but I am not sure if that still
holds true or not. Anyway maybe this will help:
http://www.sqlteam.com/article/sql-...ttached-storage
Andrew J. Kelly SQL MVP
"GSoD" <GSoD@.discussions.microsoft.com> wrote in message
news:FBACC353-992D-49D2-B883-6DDE3DBFEBDF@.microsoft.com...[vbcol=seagreen]
> Did all that. The thing is that no errors are generated. Timeouts vary
> from
> under 30 mins to over 4 hrs. There's no pattern and it would stop in
> random
> locations in a test process. Due to the randomness, it's hard to even
> begin
> to start to isolate the issue.
> We have a test script that writes and deletes "hello world" to a text
> field
> and that would also generate a failure.
> "Hate_orphaned_users" wrote:
>

Netapp issues with SQL2000 SP4

Has anyone successfully implemented SQL 2000 or SQL 2005 on Netapps? Main
application is SPS 2007 (5GB of data) and various other smaller DBs (appox
1-2GB, 10 seperate DBs)
We are having major disconnects with SQL when we move to Netapp FAS3020. We
followed the Netapp implementation to the T.
It doesn't matter if we have a IIS 7.0, WebService, or directly quering SQL
on the netapps. It will work for a few hours then all of a sudden, it will
"disconnect". There's nothing in the SQL log. Web services will result in
"Service Unavailable" We will have to totally reboot the SQL Server to get it
back online.
Netapp says it's a Microsoft Issue.I don't now Netapps.
But you should isolate the problem first. So.
Run Profiler On the SQL server...see if you have time-outs long running
queries?
Check the webserver logs.
Check if youre NIC on database and webserver are not the bottleneck...and
if it is configured okay.
Network performance okay?
Greetz.
"GSoD" wrote:
> Has anyone successfully implemented SQL 2000 or SQL 2005 on Netapps? Main
> application is SPS 2007 (5GB of data) and various other smaller DBs (appox
> 1-2GB, 10 seperate DBs)
> We are having major disconnects with SQL when we move to Netapp FAS3020. We
> followed the Netapp implementation to the T.
> It doesn't matter if we have a IIS 7.0, WebService, or directly quering SQL
> on the netapps. It will work for a few hours then all of a sudden, it will
> "disconnect". There's nothing in the SQL log. Web services will result in
> "Service Unavailable" We will have to totally reboot the SQL Server to get it
> back online.
> Netapp says it's a Microsoft Issue.
>|||Did all that. The thing is that no errors are generated. Timeouts vary from
under 30 mins to over 4 hrs. There's no pattern and it would stop in random
locations in a test process. Due to the randomness, it's hard to even begin
to start to isolate the issue.
We have a test script that writes and deletes "hello world" to a text field
and that would also generate a failure.
"Hate_orphaned_users" wrote:
> I don't now Netapps.
> But you should isolate the problem first. So.
> Run Profiler On the SQL server...see if you have time-outs long running
> queries?
> Check the webserver logs.
> Check if youre NIC on database and webserver are not the bottleneck...and
> if it is configured okay.
> Network performance okay?
> Greetz.
>
>
>
> "GSoD" wrote:
> > Has anyone successfully implemented SQL 2000 or SQL 2005 on Netapps? Main
> > application is SPS 2007 (5GB of data) and various other smaller DBs (appox
> > 1-2GB, 10 seperate DBs)
> >
> > We are having major disconnects with SQL when we move to Netapp FAS3020. We
> > followed the Netapp implementation to the T.
> >
> > It doesn't matter if we have a IIS 7.0, WebService, or directly quering SQL
> > on the netapps. It will work for a few hours then all of a sudden, it will
> > "disconnect". There's nothing in the SQL log. Web services will result in
> > "Service Unavailable" We will have to totally reboot the SQL Server to get it
> > back online.
> >
> > Netapp says it's a Microsoft Issue.
> >
> >|||I know you used to have to set a trace flag but I am not sure if that still
holds true or not. Anyway maybe this will help:
http://www.sqlteam.com/article/sql-server-and-network-attached-storage
Andrew J. Kelly SQL MVP
"GSoD" <GSoD@.discussions.microsoft.com> wrote in message
news:FBACC353-992D-49D2-B883-6DDE3DBFEBDF@.microsoft.com...
> Did all that. The thing is that no errors are generated. Timeouts vary
> from
> under 30 mins to over 4 hrs. There's no pattern and it would stop in
> random
> locations in a test process. Due to the randomness, it's hard to even
> begin
> to start to isolate the issue.
> We have a test script that writes and deletes "hello world" to a text
> field
> and that would also generate a failure.
> "Hate_orphaned_users" wrote:
>> I don't now Netapps.
>> But you should isolate the problem first. So.
>> Run Profiler On the SQL server...see if you have time-outs long running
>> queries?
>> Check the webserver logs.
>> Check if youre NIC on database and webserver are not the
>> bottleneck...and
>> if it is configured okay.
>> Network performance okay?
>> Greetz.
>>
>>
>>
>> "GSoD" wrote:
>> > Has anyone successfully implemented SQL 2000 or SQL 2005 on Netapps?
>> > Main
>> > application is SPS 2007 (5GB of data) and various other smaller DBs
>> > (appox
>> > 1-2GB, 10 seperate DBs)
>> >
>> > We are having major disconnects with SQL when we move to Netapp
>> > FAS3020. We
>> > followed the Netapp implementation to the T.
>> >
>> > It doesn't matter if we have a IIS 7.0, WebService, or directly quering
>> > SQL
>> > on the netapps. It will work for a few hours then all of a sudden, it
>> > will
>> > "disconnect". There's nothing in the SQL log. Web services will result
>> > in
>> > "Service Unavailable" We will have to totally reboot the SQL Server to
>> > get it
>> > back online.
>> >
>> > Netapp says it's a Microsoft Issue.
>> >
>> >