简体   繁体   中英

SQL Server on Azure VM Slow Network

I'm running SQL Server on Azure VM (Size DS_15). The server is extremely fast. My queries are extremely fast.

When I run my application (it's legacy VB 6) from another Azure VM it's extremely fast. When I run the same application and same identical queries from outside of the Azure DataCenter it's at least 10-15 seconds slower. I'm using ODBC Data Sources (again, it's legacy) but can't seem to do anything to speed up the connections.

When the slow connections are running SQL Profiler just spits out the same extremely fast data points. I'm struggling to find where to look next to try to speed these connections up?

When I run some of the trouble queries manually in SSMS with STATS on they return in 0, 0, and 4 ms. The same queries when ran through the app are taking 140, 130, and 280ms.

Turned out to be an issue with the SQL ODBC driver. Make sure your driver is up to date, Version 17.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM