Skip to main content

Hi

 

I am trying to replace a string which contains [dbo].[Office_name]

I am using the calculated field

 

Replace "[dbo].[Office_name]" , "[dbo].", " " ]. By doing this I'am able to get rid of the [dbo]. The output I'm getting is [Office_name] . Is there a way to get only Office_name without the brackets?

 

I tried to first split the string name at the data source level. But I'm not able to do so somehow. It's not showing as one of the options.

 

Any help would be appreciated.

 

Thanks

4 answers
  1. Jan 26, 2016, 6:15 PM

    You can use REPLACE() twice to get the desired result:

     

    REPLACE(REPLACE([String name], "[dbo].[", " "), "]" , "")

     

    The open bracket is also included along with dbo [ and then take off the outer bracket with the outer REPLACE!

0/9000