Solved

remote SQL access much slower than local

Posted on 2013-12-05
10
879 Views
Last Modified: 2014-01-16
i have an application that does fairly simple lookups on a sql server 2008 database.

i have a local to the server workstation, which has REALLY fast response time.
i have a remote (several blocks away) workstation which is slower in general, but occasionally REALL REALLY REALLY slow.

an internet speed test at
location where server is
ping 35ms
download 2.92 mbps
upload 1.30 mbps

location where remote workstation is
ping 30
download 35.34
upload 13.18

as a refference i also did a speed test from my machine
ping 13
download 93.19
upload 66.76



so...   there is obviously a bottle neeck of avalable speed  at the server site.

my questions are this..  
what do i look for in my code to try and determine why there is such a big difference in
performance between the local workstation and the remote workstation.

what can i monitor to determine if there is a something going on with the network at the times it is REALLY REALLY REALLY slow.
0
Comment
Question by:CASorter
  • 5
  • 4
10 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 39698998
network traffice on the server thats hosting the database..

How are you connecting to the DB on the remote server.. Just through the application or via ODBC Connection ?
0
 

Author Comment

by:CASorter
ID: 39699239
odbc and ado connection string
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 39699301
I didn't understand exactly where is the application box and where is the SQL server box. Can you explain?
0
 

Author Comment

by:CASorter
ID: 39699376
3 boxes altogether

server and workstation on local network  same subnet  at same location.

remote workstation in a different building  ..  a couple of blocks away
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 39699423
so workstation with app in the first case are on the same box or on 2 different boxes.

For the remote workstation, is it in the same network, domain?
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:CASorter
ID: 39699565
workstation and server local to each other are on different boxes

remote... same network but different subnet

connection between 2 builings goes out on internet and back..
0
 
LVL 26

Accepted Solution

by:
Zberteoc earned 500 total points
ID: 39699610
"connection between 2 buildings goes out on internet and back.."

I understand that the connection is done using the internet and different sub net. That is one of your problems. You can't expect the same performance like if in the same local network and subnet. If you want to create a web app to access a sql server then better place them in the same domain, subnet within the same local network and make the web app accessible over the intranet or internet if you need outwards reach.
0
 

Author Comment

by:CASorter
ID: 39699679
unfortunately the infra structure is out of my hands.

*EYE* don't expect the same performance.  the user does.... or at least usable performance.

the program is not a web app, it is a windows form.
it was not designed as a remote application.

I was hoping I could tweak some of my queries or find connections to optimize.

or

 have some way to say...  
hey look.. it is really slow now...  
 look what is going on on your network...
see, -->  when *this* is happening it slows down...  

they are trying to say that  "it is not even using all the band width it has, why would giving it more help"   they say this based on their observation of packets or some such...
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 39699691
If the queries have no performance issues on local configuration there is not much you can do. You will have to identify what queries take the longest and try to improve them.
0
 

Author Closing Comment

by:CASorter
ID: 39786776
not really a solution... but confirmation of what i already knew...
0

Featured Post

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now