Keywords Returned in IDBInfo::GetKeywords

In OLE DB, the data source object has an interface called IDBInfo, one of whose methods is IDBInfo::GetKeywords. This method returns all the keywords that apply to a provider. When a keyword is used in a query, it must be quoted. A consumer can use the list of keywords returned by this method to decide which identifier needs to be quoted.

Note   It is a good practice to quote all identifiers in an MDX expression, regardless of whether they are keywords. _UNIQUE_NAME values retrieved from a schema rowset are already quoted, so there is no need to quote them again.

MDX introduces new keywords. Any provider that declares itself to be an MDP (in the sources rowset returned by ISourcesRowset::GetSourcesRowset) must return at least the following list in IDBInfo::GetKeywords:

If the provider declares itself to be a TDP also, it has to return (in addition to the above list), a list of the keywords listed in the OLE DB Programmer’s Reference.