Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Query Plan Guides and Parameter Size

$
0
0

Hi,

Is there a trick to work around creating multiple plan guides for the same query where the only thing changing is the length of named parameters?

I have a query that is issued by MS CRM 4.0. The only thing changing is the length/size of the parameter of the query. Every query has a different parameter size depending on the length of the search value entered in the application. Basically the value 'wall street' will equal a parameter with the value 'wall street%' and a parameter size of 12 (nvarchar(12)) and a the value 'horse' will equal a parameter with the value 'horse%' and the size 6.

Is multiple plan guides really the only solution?

Regards,

Jesper, SEAS-NVE


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>