Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Unintended scanning.....

$
0
0

I just installed a sql monitoring tool and it has returned several items (pointing to specific code instances) having the following problems. One the one hand their analysis make sense but I was surprised by their claims because they appear to apply to very common coding patterns. What do you think?

>>>>>>>>>>>>

1. An implicit conversion on column <..., char(10)> to data type "nchar" may be causing index suppression

                (don't fully understand this one. Maybe an index field of type char(10) is being set to an nchar value and this

                destroys the indexes on that data?)

2. The function "rtrim" on column <> may be causing a table scan

               (huh? Can't use rtrim on a column in a predicate?)

3. The use of a function on a column value within a search predicate prevents the query optimizer from performing an index seek and requires all column values to be scanned and processed by the function.

              (this makes sense to me)

edm2


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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