User Profile
Collapse
-
Yes, the table does have an index on the column in question. The table contains about 100,000 records, and since recently adding the LIKE expression to the procedure, I have lost about half a second to a second (this is part of an auto-suggestion feature, which is why the speed is important to me). -
When will a LIKE expression use an index?
I have a stored procedure that is taking a longer than is reasonable to execute, and I have isolated the part that is costing me the most. It is the part that uses a LIKE expression. Here is the sub query in question:
@partial_vernac ular is the stored procedure parameter that contains the text I want to match on.
DECLARE @searchlike nvarchar(100);
SET @searchlike = @partial_vernac ular +'%';
SELECT...
No activity results to display
Show More
Leave a comment: