I've a query on a "big" table.
I've optimized this query, and SQL Server as created an indexed view.
So my query takes 2 seconds instead-of 20 seconds.
But, when I execute this query through a report, so in reporting services,
then the query don't use the indexed view!!!!
Any idea of what's appens?
I know I can change my query to insure I'm using the indexed view, but it's
not an elegant solution.
Thanks.
Jerome.
Here's an article on this subject from BOL:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_05_1ng3.asp
Jeff Davis
"Jéjé" <willgart@_A_hAotmail_A_.com> wrote in message
news:eKf7MS5V...@TK2MSFTNGP09.phx.gbl...
The result is the same through Visual studio or through the published
version of the report.
Can I activate anything in my conenctionstring ?
My current connection:
data source=.;initial catalog=MyDatabase
(With NT Authentication enable)
Or I've to set some option in my SP?
"Jeff Davis" <jeff....@tamtron.nospam.com.invalid> a écrit dans le message
de news:eRH2iQ7V...@tk2msftngp13.phx.gbl...
"Jeff Davis" <jeff....@tamtron.nospam.com.invalid> a écrit dans le message
de news:eRH2iQ7V...@tk2msftngp13.phx.gbl...