About 58,600 results
Open links in new tab
  1. CHARINDEX (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · CHARINDEX performs comparisons based on the input collation. To perform a comparison in a specified collation, use COLLATE to apply an explicit collation to the input.

  2. 字符索引 (Transact-SQL) - SQL Server | Microsoft Learn

    如果 expressionToFind 或 expressionToSearch 運算式具有 Unicode 資料類型 (nchar 或 nvarchar),而另一個運算式沒有, CHARINDEX 則函式會將該其他運算式轉換成 Unicode 資料類 …

  3. String Functions (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · String Functions (Transact-SQL)All built-in string functions except FORMAT are deterministic. This means they return the same value any time they are called with a specific set of …

  4. SqlFunctions.CharIndex Method (System.Data.Entity.SqlServer)

    static member CharIndex : string * string * Nullable<int> -> Nullable<int> Public Shared Function CharIndex (toFind As String, toSearch As String, startLocation As Nullable (Of Integer)) As Nullable …

  5. SSRS error : "Invalid length parameter passed to the LEFT or …

    Apr 4, 2023 · CHARINDEX will return 0 if no spaces are in the string and then you look for a left of -2 length. You could add conditionality like Jingyang Li mentioned in the code.

  6. Fix issue with "invalid length parameter passed to the left or ...

    Nov 10, 2022 · CHARINDEX will return 0 if no '-' are in the string and then you look for a substring of **0 - 2 = -2 ** length. Therefore, you'd better check if there is any special data in the source data table …

  7. LEFT (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics Analytics Platform System (PDW) SQL analytics endpoint in Microsoft Fabric …

  8. How to solve issue of Invalid length parameter passed to the LEFT or ...

    Apr 9, 2021 · In this example 0001 is file Number & 00000130 is Page Number & These numbers are in Hex format*/ SET …

  9. How to split a string into two different fields in SQL server

    Sep 3, 2020 · FROM @table SELECT REVERSE(SUBSTRING(REVERSE(COL1),CHARINDEX(' ',REVERSE(COL1)),LEN(COL1)-CHARINDEX(' ',REVERSE(COL1))+1)) COL1, …

  10. LEN (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Related content DATALENGTH (Transact-SQL) CHARINDEX (Transact-SQL) PATINDEX (Transact-SQL) LEFT (Transact-SQL) RIGHT (Transact-SQL) Data types (Transact …