Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the delay
Message
From
24/12/2011 10:42:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01531636
Message ID:
01531657
Views:
41
>>I've got a stored procedure that I'm trying to execute from a VFP program. If I execute the stored procedure from Query Analyzer takes less than 1 second. However, the same call performed as a SQL passthru from within a VFP application could take anywhere between 14~40 seconds. What would account for the delay?
>
>There could be many reasons. SQL Server MVP Erland Sommarskog has a long recent article that helps to understand possible reasons
>Slow in the Application, Fast in SSMS?
Thanks, took a while to read through article.
Tried removing the stored procedure and add it back again, then noticed an improvement in speed -- however after a few tries it went back to taking a long time to execute -- pointing that it's probably something in the stored procedure and how SQL Server is setting up excution plan (as indicated in article).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform