Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: MS SQL alternative to SUBSTRING_INDEX

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER OFF

    GO

    create FUNCTION [dbo].fnSubstring_Index

    (

    @BaseString varchar(255),

    @caracter varchar(255),

    @pos tinyint

    ) RETURNS varchar(255)

    AS

    /* ****************************************************

    Description:

    EQuivalent a mysql substring_index---- ---- -----------

    Created by Omar Rodriguez Tineo

    **************************************************** */

    BEGIN

    /*

    DECLARE @pos INT

    Declare @BaseString varchar(255)

    Declare @caracter varchar(255)

    */

    Declare @indice...

Viewing post 1 (of 1 total)