Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / December 2004



Tip: Looking for answers? Try searching our database.

SQL Speed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Baima - 17 Dec 2004 20:37 GMT
I’ve been working on a program that uses SQL Server and I’ve noticed
that the same SQL query run in Query Analyzer is often 10 times faster
than the same query in VB. Besides, “that’s just VB”, is there a good
reason for this or could I be doing something wrong to make it that
slow? I tried playing with the “adOpenStatic, adLockReadOnly”
parameters, but that seems to have little or no effect. Any
suggestions? Thanks!

-John
Jason Tost - 28 Dec 2004 23:26 GMT
> I’ve been working on a program that uses SQL Server and I’ve noticed
> that the same SQL query run in Query Analyzer is often 10 times faster
[quoted text clipped - 5 lines]
>
> -John

What's your VB code look like that is taking the performance hit?
Gijs Beukenoot - 31 Dec 2004 11:27 GMT
Het is zò dat Jason Tost formuleerde :
>> I?ve been working on a program that uses SQL Server and I?ve noticed
>> that the same SQL query run in Query Analyzer is often 10 times faster
[quoted text clipped - 7 lines]
>
> What's your VB code look like that is taking the performance hit?

Where is the resultset (adUseServer / adUseClient) stored

You could use the profiler to see what's it doing and where the delay
might come from.

Signature

Your eyes are weary from staring at the CRT. You feel sleepy. Notice
how restful it is to watch the cursor blink. Close your eyes. The
opinions stated above are yours. When I snap my fingers, you cannot
imagine why you ever felt otherwise. <snap>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.