convert TSQL expression into SSRS expression

  • Can anyone convert this TSQL expression into SSRS expression

    As I don't know which functions work in ssrs as in TSQL

    UPPER(REPLACE(SUBSTRING(@trustee, CHARINDEX('\', @trustee) + 1, LEN(@trustee) + 1), '.', ' '))

    Example:

    Declare @trustee varchar(max)

    set @trustee = 'RASHING_houl\wddi.masdf'

    select UPPER(REPLACE(SUBSTRING(@trustee, CHARINDEX('\', @trustee) + 1, LEN(@trustee) + 1), '.', ' '))

    Thanks,

    Komal

  • Why not do this at source and utilise in the SSRS dataset?

    gsc_dba

  • komal145 (6/5/2012)


    Can anyone convert this TSQL expression into SSRS expression

    As I don't know which functions work in ssrs as in TSQL

    UPPER(REPLACE(SUBSTRING(@trustee, CHARINDEX('\', @trustee) + 1, LEN(@trustee) + 1), '.', ' '))

    Example:

    Declare @trustee varchar(max)

    set @trustee = 'RASHING_houl\wddi.masdf'

    select UPPER(REPLACE(SUBSTRING(@trustee, CHARINDEX('\', @trustee) + 1, LEN(@trustee) + 1), '.', ' '))

    Try:

    UCASE(REPLACE(MID(@trustee, InStr('\', @trustee) + 1, LEN(@trustee) + 1), '.', '')) as opposed to

    UPPER(REPLACE(SUBSTRING(@trustee, CHARINDEX('\', @trustee) + 1, LEN(@trustee) + 1), '.', ' '))

    l

    gsc_dba

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

You must be logged in to reply to this topic. Login to reply