They both return bigint's that are the starting values.
Declare @str varchar(100) = 'abcdefghigklmnopqrstuvwxyz_e' /* CHARINDEX http://msdn.microsoft.com/en-us/library/ms186323.aspx Searches an expression for another expression and returns its starting position if found. */ -- Select the first e in a string SELECT CHARINDEX('ef', @str) -- Select the first e in a string, starting at the 10th character SELECT CHARINDEX('e', @str, 10) /* PATINDEX http://msdn.microsoft.com/en-us/library/ms188395 Turns the starting position of the first occurrence of a pattern in a specified expression, or zeros if the pattern is not found, on all valid text and character data types. */ SELECT PATINDEX('%efg%', @str)
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE