About 1,450 results
Open links in new tab
  1. SQL Server PATINDEX() Function - W3Schools

    The PATINDEX() function returns the position of a pattern in a string. If the pattern is not found, this function returns 0. Note: The search is case-insensitive and the first position in string is 1.

  2. PATINDEX (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 3, 2024 · Returns the starting position of the first occurrence of a pattern in a specified expression, or zero if the pattern is not found, on all valid text and character data types. …

  3. SUBSTRING, PATINDEX and CHARINDEX string functions in SQL

    Mar 1, 2021 · SQL Server provides many useful functions such as ASCII, CHAR, CHARINDEX, CONCAT, CONCAT_WS, REPLACE, STRING_AGG, UNICODE, UPPER for this purpose. In …

  4. SQL Server PATINDEX Function By Practical Examples

    In this tutorial, you have learned how to use the SQL Server PATINDEX () function to find the position of a pattern in a string.

  5. SQL Server PATINDEX() Function - GeeksforGeeks

    Sep 2, 2024 · The PATINDEX function in SQL Server searches for a pattern within a string and returns the starting position of the first occurrence of that pattern. It is useful for locating …

  6. SQL PATINDEX Function Use and Examples - MSSQLTips.com - SQL Server

    Apr 27, 2025 · Learn how to use the SQL Server PATINDEX function to search for specific patterns within a string.

  7. CHARINDEX() vs PATINDEX() in SQL Server – What’s the …

    May 5, 2018 · In SQL Server, you can use either the CHARINDEX() function or the PATINDEX() function to find a string within a string. These are Transact-SQL string functions, and they’re …

  8. PATINDEX Function in SQL Server

    Jan 22, 2024 · In this SQL Server tutorial, you have learned how to find the starting position or index of the pattern (substring) in the given string using the PATINDEX function in SQL …

  9. SQL Server PATINDEX (): Find Pattern Positions in Strings with ...

    Oct 27, 2024 · A comprehensive guide to the SQL Server PATINDEX() function. Learn how to use it to find the starting position of a specified pattern within a string, with detailed examples and …

  10. How the PATINDEX() Function Works in SQL Server (T-SQL)

    May 11, 2019 · In SQL Server, you can use the T-SQL PATINDEX() function to find a pattern within a string. Specifically, the function only returns the first occurrence of the pattern within …

Refresh