What I am trying to do is feed in a small string and it will filter some values out for me. This might be easier to do in visual studio than in a TSQL function. Here are some notes on my findings.
I am simply feeding in “ABCD” and it will match the 2 letters AB and CD and filter out the corresponding values. So if I feed in ABCD from _ABWXYXCD_ITEM1_ITEM2_ITEM3_ITEM4_ then I expect the output _ABCD_ITEM1_ITEM4_
Simple right? Phhh! Not quite in TSQL. Super easy in c#, but I have never made a dll before.
Here is a start to my TSQL that would be part of a function. I thought to myself – lets stop while we are ahead… Continue reading