UDT Tag Values in OPC Item Paths

Want to open this again - I realise there are older topics about it…

I’d like to have an integer driven by an SQL tag that’s used as the array index for an OPC item / all items in a UDT. I realise I can do this with a custom property but I’d really like to do it with a database tag.