External DataStores

From SMTX Wiki
Revision as of 11:13, 27 June 2017 by Smtxwiki (talk | contribs) (Created page with "this query gives all information of all datastore parameters which are of the type 'External Query'. It gives the name, Category, ConnectionString, SQLQuery, Refresh rate (in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

this query gives all information of all datastore parameters which are of the type 'External Query'. It gives the name, Category, ConnectionString, SQLQuery, Refresh rate (in hours) & Last refresh timestamp


SELECT "Name"

     ,"Category"
     ,CASE "ConnectionTypeId"
            WHEN 0 THEN 'Internal'
            WHEN 1 THEN 'SQL Server'
            WHEN 2 THEN 'Oracle'
            WHEN 3 THEN 'Odbc'
            WHEN 4 THEN 'OleDb'
            END as ConnectionType
     ,"ConnectionString"
     ,"SqlQuery"
     ,"CacheTime"
     ,"CachedSince"
 FROM "Parameter" WHERE "Type" = 5