sql - Query execution plan of same queries -


observation:

i executing same query through .net code using cmd.executenonquery() , directly in sql server management studio passing parameter values.

when execute through code runs long time (15-20min) whereas when execute in sql server same parameters completes within few seconds.

the reason taking longer time performance issue of query , solved introduction of non-clustered indexes in 1 of tables.

i still wonder, why taking few seconds earlier sql server although environmental conditions same. due difference in execution plan? idea?


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -