Get project-ref from the sql level

Hi, is there a way to get the project ref from the sql level? Is it stored in some internal table or sth?
Was this page helpful?