Getting cdt data from a dse

Certified Senior Developer

I have an expression that takes in a dse and spits out the column names of everything in that dse. Unfortunately, the way it does this is by querying the dse and then running a!keys() on the first entry of the result to figure that all out. While this works perfectly well when the dse has values in it, it will error out if the table is empty. So is there any way to get the same information directly from a DSE that doesn't have data in it? 

  Discussion posts and replies are publicly visible

Parents Reply
  • No, INFORMATION_SCHEMA.COLUMNS is the database definition and does not rely on data in the tables.  This is the MSSQL version, I'm not sure what you are using for an underlying database.  Just a thought for how you might be able to return columns per DSE/table regardless on data present.

    For instance, in this case we query for "chris_test_table" and are returned all column names, data types, etc in that table (more metadata is available).  The table is empty.

Children