Forum Replies Created

Viewing 2 posts - 1 through 3 (of 3 total)

  • RE: Concatenate strings

    we can do this with COALESCE function also

    DECLARE @DBs TABLE ( DBname NVARCHAR(100) )

    DECLARE @txt varchar(50)

    INSERT INTO @DBs

    VALUES ( 'A' ),

    ( 'B' ),

    ( 'C' )

    select @txt=COALESCE(@txt+',','')+DBname from @DBs

    select @txt

  • RE: Concatenate strings

    we can do this with COALESCE function also

    DECLARE @DBs TABLE ( DBname NVARCHAR(100) )

    DECLARE @txt varchar(50)

    INSERT INTO @DBs

    VALUES ( 'A' ),

    ...

Viewing 2 posts - 1 through 3 (of 3 total)