SQL issue or network issue

Oct 29, 2015
143
3
81
Hey everybody,
Got an issue that has me a bit puzzled. I work in a PC repair shop that deals with businesses and home users, so quiet a wide array of issues to deal with on a day to day basis.

I have one customer who has a duty free store. All of his POS systems use software from a company called Winward, the individual systems are standalone and their server is visible as a shared drive where the company data is kept for all their daily transactions.
Installed on the server is Pervasive SQL Server. From what I understand of Winward they rely on the SQL Server to coordinate the new data being added from each transaction.

That is the detail of their setup, now for the issue.

They have one desktop, their Cash One, that is constantly loosing its connection to the server. It hangs while checking inventory or during a transaction and reports it has lost connection.
Every time I've gone on site and run a ping test to the server I have no issues what so ever, never misses a reply, all the ping times are between 1ms and 15ms, browses online.
From this I can only assume that there is no issue with his physical network, or with the machine itself. My guess is that for some reason there is an issue with the SQL server connection.

None of the of systems are having this issue, but I'm a little at a loss on how to check and monitor the SQL connection.
The tech support from Winward is quiet lacking as they are on the west coast and do not open early enough to accommodate us in the east, or you get the lackluster bunch from the Philippians.

Thanks in advance!
 
Last edited by a moderator:

cbrunny

Diamond Member
Oct 12, 2007
6,791
406
126
<-- not a pro. grains of salt.

1. I would stress test the network connection. Force it to transfer large files from client to host pc in both directions and see what happens. Test another machine and see if you get same result.

2. I would test the SQL by writing basic simple codes and seeing if they run properly on client. As I understand it, the connection is either open or closed, so there should also be some log that monitors where and when it is open. My guess is this log is server side. I'd check that for a connection opening and closing frequently.
 
Oct 29, 2015
143
3
81
I will have to keep the large file idea in my head the next time I'm out that way. Any suggests on how to monitor the transfer? Should I just rely on the file transfer tool built into Windows or use another utility like Teracopy or Extremecopy?

My experience with SQL is pretty nonexistent, what would you suggest I write for code?
 

cbrunny

Diamond Member
Oct 12, 2007
6,791
406
126
I'd keep it simple until there's a reason to use a bigger tool. Just use Windows and let it do its thing. The graph will be enough to know if its network issue.

as for code, just use something like:

"select * from [table name]"

and see what happens. it doesn't matter what data you pull, just that you pull data.
 

nakedfrog

No Lifer
Apr 3, 2001
59,258
13,872
136
Are these running wired or wireless?
When you ping, are you just doing the standard ping that executes four times? You might try a continuous ping. Also try doing a telnet from the PC to the SQL port, I imagine it's probably running on the default port.
 
Oct 29, 2015
143
3
81
They are running wired. While I was onsite it was a continuous ping, ran it for 5 or 10 minutes, no losses, very low response rate. I'll have to look into how to do the telnet, not something I've had to do for a number of years.
Can anyone tell me how to write the code for the SQL? I've never had to deal with it directly
 
Oct 29, 2015
143
3
81
They are running wired. While I was onsite it was a continuous ping, ran it for 5 or 10 minutes, no losses, very low response rate. I'll have to look into how to do the telnet, not something I've had to do for a number of years.
Can anyone tell me how to write the code for the SQL? I've never had to deal with it directly
 

mvbighead

Diamond Member
Apr 20, 2009
3,793
1
81
Sporadic loss of connectivity to me sounds like a network connection problem.

If it's simply a few stations connected to a 'dumb' switch, I would simply move connections around (EG - everything goes to the next port). Could be a bad port on the switch. If the problem moves, you likely have a bad port on the switch. If nothing happens...

Next guess would be the cable has an issue. This could be a that it is occasionally shorting, who knows. If you have a cable tester, test end to end (likely a good first step). If there is a short, it would find it most likely. If you have the option, run a new cable to the system.

All in all, usually when a connection is lost, it relates to a system and not the things the system is connecting to. A connection to SQL either works or it doesn't. If it's sporadic, I strongly doubt it has anything to do with SQL unless it is something that only happens at a particular function or job.
 

Oyeve

Lifer
Oct 18, 1999
21,995
854
126
I highly doubt its an SQL issue. Is this PC connected to a managed router? Is it connected the same as the other computers? I have seen this issue many time at my company and its always been connection issues to managed hub/routers. For instance, at one of my locations we have 10 PCs. All connected to the same local network that has one SQL server for a specialized database. 2 of these PCs were connected to a wireless access port. These 2 PCs would always drop the SQL connection even tho everything was on the same LAN. Its some firewall setting on the AP.
 

John Connor

Lifer
Nov 30, 2012
22,757
617
121
Off topic, but your username has 88 at the end. Did you know Jack The Ripper was committing his murders in 1888? White Chapel if I remember right. And I believe it was Aaron Kosminski.

Anyway, back to your thread already in progress.
 

Ertaz

Senior member
Jul 26, 2004
599
25
81
Have you looked at event viewer on both the client and the server for issues occuring around that time?
 

PliotronX

Diamond Member
Oct 17, 1999
8,883
107
106
Try appending the hostname (NETBIOS) and IP of the SQL server to the hosts file of the Cash One client as well as the domain name to the PDC IP (if applicable). Should look like this:

172.16.10.31 sqlserver
172.16.10.30 waywardwinward.local
 

Railgun

Golden Member
Mar 27, 2010
1,289
2
81
Sporadic loss of connectivity to me sounds like a network connection problem.

If it's simply a few stations connected to a 'dumb' switch, I would simply move connections around (EG - everything goes to the next port). Could be a bad port on the switch. If the problem moves, you likely have a bad port on the switch. If nothing happens...

Next guess would be the cable has an issue. This could be a that it is occasionally shorting, who knows. If you have a cable tester, test end to end (likely a good first step). If there is a short, it would find it most likely. If you have the option, run a new cable to the system.

All in all, usually when a connection is lost, it relates to a system and not the things the system is connecting to. A connection to SQL either works or it doesn't. If it's sporadic, I strongly doubt it has anything to do with SQL unless it is something that only happens at a particular function or job.

I highly doubt its an SQL issue. Is this PC connected to a managed router? Is it connected the same as the other computers? I have seen this issue many time at my company and its always been connection issues to managed hub/routers. For instance, at one of my locations we have 10 PCs. All connected to the same local network that has one SQL server for a specialized database. 2 of these PCs were connected to a wireless access port. These 2 PCs would always drop the SQL connection even tho everything was on the same LAN. Its some firewall setting on the AP.

Haven't you guys ever heard of "It's not the network!"

Based on the information given, it points to an SQL/app issue. If I had a dime for every performance issue from some client to a DB server that was blamed on the network...

If the issue is when a query is being made, then why would that not be an SQL/app issue? If you're only able to do very basic testing, run a query while pinging the server. If you don't drop, it's an SQL issue. I'd also run a capture. What's the underlying OS? If Win, use wireshark. If some Linux distro, tcpdump to a file...then use wireshark. I doubt said query loads any switch/router by the data going across.

I'd push the vendor for support. That's the whole point.
 
Oct 29, 2015
143
3
81
Wow forgot I had posted this and never saw a notification in my email, sorry guys. Let me look back through your posts.
 
Oct 29, 2015
143
3
81
Off topic, but your username has 88 at the end. Did you know Jack The Ripper was committing his murders in 1888? White Chapel if I remember right. And I believe it was Aaron Kosminski.

Anyway, back to your thread already in progress.

Lol, not something I had thought of when I chose the name. Usually I use linkmaster6 but it was taken, so I picked jacktheripper and my birth year
 
Feb 25, 2011
16,909
1,553
126
They are running wired. While I was onsite it was a continuous ping, ran it for 5 or 10 minutes, no losses, very low response rate. I'll have to look into how to do the telnet, not something I've had to do for a number of years.
Can anyone tell me how to write the code for the SQL? I've never had to deal with it directly
15ms for a hard-wired LAN is actually a really bad response rate. All my hard-wired stuff at home and at work is <1ms.

Try replacing the wires first, IMO. In school, we used to say that Rule #1 of Network Troubleshooting was "Always start with Layer 1."
 

Enigma102083

Member
Dec 25, 2009
147
0
0
Haven't you guys ever heard of "It's not the network!"

Based on the information given, it points to an SQL/app issue. If I had a dime for every performance issue from some client to a DB server that was blamed on the network...

If the issue is when a query is being made, then why would that not be an SQL/app issue? If you're only able to do very basic testing, run a query while pinging the server. If you don't drop, it's an SQL issue. I'd also run a capture. What's the underlying OS? If Win, use wireshark. If some Linux distro, tcpdump to a file...then use wireshark. I doubt said query loads any switch/router by the data going across.

I'd push the vendor for support. That's the whole point.
A 15ms ping to the DB server on the LAN is most certainly a network problem. Most likely cable issue since it's isolated to one machine.
 
Oct 29, 2015
143
3
81
Should've explained the ping timings a little bit better. 15ms was the absolute highest it went maybe once or twice out of the 500 or 600 pings I let it do, the other 99.99% were all 1-2ms
 
Feb 25, 2011
16,909
1,553
126
Should've explained the ping timings a little bit better. 15ms was the absolute highest it went maybe once or twice out of the 500 or 600 pings I let it do, the other 99.99% were all 1-2ms

1-2ms is also too high.

Two devices on the same network (hard wired and with a switch or two between them) should be able to communicate like, well, like this.



Simply the fact that there was EVER a 15ms ping between two of the devices on that network means that you probably have a wiring problem.
 

PliotronX

Diamond Member
Oct 17, 1999
8,883
107
106
1-2ms is also too high.

Two devices on the same network (hard wired and with a switch or two between them) should be able to communicate like, well, like this.



Simply the fact that there was EVER a 15ms ping between two of the devices on that network means that you probably have a wiring problem.
Hardwire doesn't automatically make it sub millisecond at all times if for example we are talking about routed ports. I've seen inter-VLAN pings do funky stuff as well. I am not convinced it's a layer 1 problem.
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,101
126
Any Windows ping software that can show ping response time smaller than 1 ms?

Windows ping command can only show ping response time < 1 ms, but not down to 0.0x ms like Linux.
 
Last edited:
Feb 25, 2011
16,909
1,553
126
Hardwire doesn't automatically make it sub millisecond at all times if for example we are talking about routed ports. I've seen inter-VLAN pings do funky stuff as well. I am not convinced it's a layer 1 problem.
Sure, it's not a guarantee. But has OP even tried new wires? :thumbsup:
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |