Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL slow at runtime
Message
From
16/04/2015 04:00:45
 
 
To
15/04/2015 18:37:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01618499
Message ID:
01618526
Views:
49
>I have SQL statement (local database) that runs slow when in runtime but fast when executing from Command window.
>
>What can be a problem?

In addition to the previous answers, if the SQL buildsa temp index or does multiple joins (thereby building temp cursors on the fly) the location of tempfiles can make large differences. If your runtime works with a tempfile dir located on the server and the command window with one on the local machine...
Also possible are Oplocks/SMB differences: are you certain that the # of users having the tables accessesed by your query is distributed the same across the single user/multiuser dimension?
Previous
Reply
Map
View

Click here to load this message in the networking platform