Skip to content
  • There are no suggestions because the search field is empty.

Dynamically using tag values in DataHub queries

I am writing a SQL Query in the DataHub Query from a Database section, and would like to dynamically use the value of one of my DataHub tags in my query. Is this possible?

Yes this is definitely possible. The syntax to evaluate a DataHub point and include the value in the query will be <%= $domain:tag %>


For example:

SELECT Value FROM [dbo].[MarcsTable] WHERE TagName='<%= $default:MarcsTag %>'

—will query the value from MarcsTable where the TagName matches the value of MarcsTag in the default data domain.