About 253,000 results
Open links in new tab
  1. String Manipulation - CHARINDEX() - SQLServerCentral

    Feb 13, 2009 · I see charindex used quite commonly in string manipulation. ... My reply follows. Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup? …

  2. CHARINDEX in reverse – SQLServerCentral Forums

    Jul 1, 2009 · I need to find the first and last names (separately). I am using: Left(Job_Descript.PM,CHARINDEX(' ',Job_Descript.PM) - 1) for the first name. Is there a …

  3. 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. Thanks,

  4. Performance difference between LIKE and CHARINDEX?

    Mar 8, 2013 · Performance difference between LIKE and CHARINDEX? Forum – Learn more on SQLServerCentral

  5. ERROR using CharIndex : Invalid length parameter

    Apr 18, 2017 · Most likely your charindex is returning a value of 0, and thus erroring. For example, if FULLNAME contained a value of 'Thom', charindex(',', U.FULLNAME) would return a value …

  6. CHARINDEX Not Finding String – SQLServerCentral Forums

    Oct 3, 2011 · CHARINDEX('<t2>', Data) I have triple checked that <t2> is indeed part of the data in the data column. Any ideas why it would return a zero and not find the string?

  7. I want to know the charindex of single quote(char(39))

    Mar 30, 2010 · Hello friends. I want to know the charindex of single quote whose ascii is 39 from Given string . Like below . Declare @strTest as VARCHAR(100) set @strTest = ab'c

  8. 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. One approach is to use the CHARINDEX function, which …

  9. Extracting string after and before a Character/Pattern

    Aug 19, 2009 · If we want to extract before the character you would put the charindex as the number of characters and start position as 0 in the substring function ----select characters …

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

    Feb 13, 2009 · To remove the part of string before the specific character, you use these transact-sql string functions as follow: SELECT REPLACE(SUBSTRING(string_expression, …

Refresh