Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 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...

  • 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 2 (of 2 total)