GetTableEntryDescSlim and GetTableEntryDescription are Scalar-valued Functions in The Raiser's Edge database.  They return the short/long description of code table entries which is done at run-time of the SQL scalar function.  They do not utilize the RE API and are available when working with just SQL.  

The logic of each can be uncovered when connected to SSMS and using Microsoft's built-in function: sp_helptext

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Our Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.