# Searching by Bind Variable

**URL:** <https://community.dynatrace.com/t/searching-by-bind-variable/35410>\
**Category:** Open Q&A\
**Tags:** search\
**Created:** [June 8, 2022, 8:22am UTC](https://community.dynatrace.com/t/searching-by-bind-variable/35410 "2022-06-08T08:22:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KVZ](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@KVZ](https://community.dynatrace.com/u/KVZ)\
**Post date:** [June 8, 2022, 8:22am UTC](https://community.dynatrace.com/t/searching-by-bind-variable/35410/1 "2022-06-08T08:22:45Z")

</div>

We have a scenario where we want to see for example that an ID that has been inserted into a table and later needs to be deleted from that table.

The ID is seen as a bind variable, and I wanted to know if there’s any way to search by this bind variable to see the different sql executions which used it?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [June 14, 2022, 8:32pm UTC](https://community.dynatrace.com/t/searching-by-bind-variable/35410/2 "2022-06-14T20:32:24Z")

</div>

[@KVZ](https://community.dynatrace.com/user/50988),

I imagine you are a Managed customer, as SaaS customers don’t have the option to get bind variables.

There is no current way that I know of to find bind variables by their value.

But I get your point, and I believe it would be a good product idea. You can create one in the Product Ideas: [https://community.dynatrace.com/t5/Dynatrace-product-ideas/idb-p/DynatraceProductIdeas](https://community.dynatrace.com/category/DynatraceProductIdeas)

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [June 15, 2022, 6:06am UTC](https://community.dynatrace.com/t/searching-by-bind-variable/35410/3 "2022-06-15T06:06:38Z")

</div>

Yes&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp; something like auto tag top queries with bind variable for advance filter search.

I believe&nbsp;[@KVZ](https://community.dynatrace.com/user/50988)&nbsp; definitely go ahead converting this to an idea

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 15, 2025, 6:39am UTC](https://community.dynatrace.com/t/searching-by-bind-variable/35410/4 "2025-12-15T06:39:21Z")

</div>

Dears&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;&&nbsp;[@KVZ](https://community.dynatrace.com/user/50988)

Is there any update regarding this matter?

Regards,

Babar Qayyum

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 15, 2025, 7:16am UTC](https://community.dynatrace.com/t/searching-by-bind-variable/35410/5 "2025-12-15T07:16:56Z")

</div>

[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;for SaaS this is certainly possible for DPS SaaS instances having traces in grail where you can query spans and filter on attributes, including bind variables.  
For Managed, I don’t think this is possible at the moment.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 15, 2025, 8:37am UTC](https://community.dynatrace.com/t/searching-by-bind-variable/35410/6 "2025-12-15T08:37:01Z")

</div>

Hello&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)

I appreciate your thoughtful feedback. However, due to our managed setup, we are unable to take advantage of it.

Regards,

Babar Qayyum

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 15, 2025, 9:02am UTC](https://community.dynatrace.com/t/searching-by-bind-variable/35410/7 "2025-12-15T09:02:52Z")

</div>

In Managed, I’d try to define a request attribute to get the value. However, it might not be easily possible. It depends on how your application code is structured.
