|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Why do Ado.net don't use execution plan that Query Analyzer
Hi All,
I would be grateful if you can give me some directions. Thanks. Best Regards, David Hi All,
The question is: Why do Ado.net don't use execution plan that Query Analyzer generate? I would be grateful if you can give me some directions. Best Regards, David Show quoteHide quote "David Dong" <dongxiao***@hotmail.com> wrote in message news:O27lpRWSGHA.736@TK2MSFTNGP12.phx.gbl... > > > Hi All, > > I would be grateful if you can give me some directions. > > Thanks. > Best Regards, > David >
Show quote
Hide quote
"David Dong" <dongxiao***@hotmail.com> wrote in message A difference in the SET options or a difference in the login account can news:%23jvhNXWSGHA.4168@tk2msftngp13.phx.gbl... > Hi All, > > The question is: > Why do Ado.net don't use execution plan that Query Analyzer generate? > > I would be grateful if you can give me some directions. > > Best Regards, > David > > "David Dong" <dongxiao***@hotmail.com> wrote in message > news:O27lpRWSGHA.736@TK2MSFTNGP12.phx.gbl... >> >> >> Hi All, >> >> I would be grateful if you can give me some directions. >> both cause a different plan to be used. And, of course, if the query is not parameterized the same, it's not the same query and won't get the same plan. Daivd Hi David,
Thank you very much for your response. I notice the 'arithabort' option is difference.and also i notice in syscacheobjects table that includes a colume for the set bitmap. I have also noticed a link that can help sb to troubleshoot these problem. http://www.sqldev.net/misc/fn_setopts.htm Best Regards, David Show quoteHide quote "David Browne" <davidbaxterbrowne no potted m***@hotmail.com> wrote in message news:%23%231T3FYSGHA.5156@TK2MSFTNGP10.phx.gbl... > > "David Dong" <dongxiao***@hotmail.com> wrote in message > news:%23jvhNXWSGHA.4168@tk2msftngp13.phx.gbl... >> Hi All, >> >> The question is: >> Why do Ado.net don't use execution plan that Query Analyzer generate? >> >> I would be grateful if you can give me some directions. >> >> Best Regards, >> David >> >> "David Dong" <dongxiao***@hotmail.com> wrote in message >> news:O27lpRWSGHA.736@TK2MSFTNGP12.phx.gbl... >>> >>> >>> Hi All, >>> >>> I would be grateful if you can give me some directions. >>> > > > A difference in the SET options or a difference in the login account can > both cause a different plan to be used. > > And, of course, if the query is not parameterized the same, it's not the > same query and won't get the same plan. > > Daivd >
Other interesting topics
Stop & Start SQL Server for using scm
expectations for SUM query on 50+ million rows Trusted Connection failing Internal SQL Server error Move 2000 to 2005 Page coruption Query suddenly becomes very slow Management Studio Question.... Stored procedures in master database SQL Server 200/2005 OLAP weird!!! |
|||||||||||||||||||||||