SQL Server 2008 execution plan question?

You really need to read this Dynamic Search Conditions in T-SQL by Erland Sommarskog . You shouldn't worry about repeating code, this is not some homework assignment. Just worry about making the execution plan use an index.

When making SQL code "pretty" the only thing to consider is indenting & case, any other changes can cause the query plan to be slower. I've seen trivial changes to a super fast query result in a super slow query. GO FOR SPEED (index usage) and duplicate code as necessary.

Also see: The Curse and Blessings of Dynamic SQL.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions