I am trying to query my SQL CE to retrieve database meta data - at the moment I am trying to fetch the index data using:
select * from information_schema.indexes
However this query is going to be run programatically - and needs to return the needed columns in the right order. Therefore, I have built the following select statement:
select Table_Name, Table_Schema, Index_Name, Clustered, Unique,
Column_Name from information_schema.indexes
However, the words Clustered
and Unique
are reserved keywords and they cannot be used in a select statement. Doing so, I get the following error: There was an error parsing the query. [Token line number: 1,Token line offset: 45, 0,Token in error: Clustered,,]
I found a similar issue here (Using SQL keyword in title of table or column) but the solution does not seem to work with SQL CE (wrapping column name in back-ticks).
Any ideas how I can actually select data from keyword columns in SQL CE?