About 243,000 results
Open links in new tab
  1. ERROR using CharIndex : Invalid length parameter passed to the …

    Apr 18, 2017 · In such cases, your CHARINDEX expressions will evaluate to -1, which is an invalid length parameter to pass to the LEFT function. I think you'll need a CASE expression to …

  2. Performance difference between LIKE and CHARINDEX?

    Mar 8, 2013 · Based on that, the differences between LIKE and CHARINDEX are negligible with the split string and join method following close behind.

  3. CHARINDEX in reverse – SQLServerCentral Forums

    Jul 1, 2009 · REVERSE is one of the less performant string functions in TSQL, so this alternative expression calls REVERSE only once. SELECT RIGHT(@nam, CHARINDEX(' ', …

  4. Find the Nth Occurrence of a Character in a String

    Aug 5, 2002 · T-SQL's CHARINDEX () function is a useful for parsing out characters within a string. However, it only returns the first occurrence of a character.

  5. Find spaces between First and Last Name in Microsoft SQL

    Jun 23, 2023 · In Microsoft SQL, you can find the spaces between the first and last name using various string manipulation functions.

  6. String Manipulation - CHARINDEX () – SQLServerCentral

    Feb 13, 2009 · String Manipulation - CHARINDEX () Seth Phelabaum, 2009-12-19 I see charindex used quite commonly in string manipulation. What I rarely see used is the optional …

  7. CHARINDEX - 1 – SQLServerCentral Forums

    May 6, 2011 · So, I want to do CHARINDEX (',', Name1)-1, but for the life of me, I can't seem to get it to work. Figured I would post it out here to get a different set of eyes on it.

  8. Removing part of string before and after specific character using ...

    Feb 13, 2009 · Problem Today, one of the developers come to me and asked me the question that is there any T-SQL function that he could use to remove everything before and after a …

  9. CHARINDEX Not Finding String – SQLServerCentral Forums

    Oct 3, 2011 · CHARINDEX Not Finding String Forum – Learn more on SQLServerCentral

  10. Using Substring and Charindex to split a text in to columns

    Dec 18, 2012 · I am trying to achieve by using substring and charindex to split the data of this field in to columns separated by slash "/". So the result of "OrgInput" would be something like this: