The code posted by ESquared is better to use. Let me explain.
If there is an index on the column, your query will not be able to use it, but the code posted by ESquared will. For a full explanation, do some reading about [google]SQL Server Sargable Query[/google].
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.