Re: different plan based on connection
- From: "Michael Coles" <michaelcoAToptonlineDOTnet>
- Date: Mon, 13 Jul 2009 14:59:41 -0400
Hard to say without seeing all the code, etc. I would guess that it might
boil down to differences in the libraries you used to connect to SQL Server,
or at least differences in the settings. But again there's not enough info.
here for a conclusive answer.
"Dan Holmes" <dan.holmes@xxxxxxxxxxxxxx> wrote in message
news:ul1sHp%23AKHA.3708@xxxxxxxxxxxxxxxxxxxxxxx
I wrote a simple vb and c# app that just executed sql and filled a
datagrid. I then turned profiler on and trapped the XML plan along with
the stmt complete and batch completed events.
I noticed that when executing sql from VB via ADO2.8 that the query plan
was different when executed from SSMS and C#. the vb plan was a parallel
execution whereas the SSMS and C#plans were the same but did not use
parallelism. The sql was the same as is the DB and server they were
executing against.
Does anyone know why that would be?
dan
.
- References:
- different plan based on connection
- From: Dan Holmes
- different plan based on connection
- Prev by Date: different plan based on connection
- Next by Date: Re: background task
- Previous by thread: different plan based on connection
- Next by thread: Re: different plan based on connection
- Index(es):
Relevant Pages
|