I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
Read more about CHARINDEX Here
There is also a CONTAINS
function in T-SQL, but unfortunately it cannot be used on that column of that table because the column is not Full-Text Indexed
I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
Read more about CHARINDEX Here
There is also a CONTAINS
function in T-SQL, but unfortunately it cannot be used on that column of that table because the column is not Full-Text Indexed
I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
Read more about CHARINDEX Here
There is also a CONTAINS
function in T-SQL, but unfortunately it cannot be used on that column of that table because the column is not Full-Text Indexed
- 29k
- 11
- 86
- 188
I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
Read more about CHARINDEX Here
There is also a CONTAINS
function in T-SQL, but unfortunately it cannot be used on that column of that table because the column is not Full-Text Indexed
I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
There is also a CONTAINS
function in T-SQL, but unfortunately it cannot be used on that column of that table because the column is not Full-Text Indexed
I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
Read more about CHARINDEX Here
There is also a CONTAINS
function in T-SQL, but unfortunately it cannot be used on that column of that table because the column is not Full-Text Indexed
- 29k
- 11
- 86
- 188
I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
There is also a CONTAINS
function in T-SQL, but unfortunately it cannot be used on that column of that table because the column is not Full-Text Indexed
I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
I have never used it before but I think what you are looking for is CHARINDEX
I found a StackOverflow Answer that has several upvotes and no downvotes using it like this
WHERE CHARINDEX('</code></pre>', Body) = 0
So far from what I have seen they are relatively close to the same speed, and is giving the same results as your query.
I would much rather read this than Body not like '%</code></pre>%'
I think we have found a new "hammer", let's find some nails.
There is also a CONTAINS
function in T-SQL, but unfortunately it cannot be used on that column of that table because the column is not Full-Text Indexed