# JDBC Bind Value Maximum Length

**URL:** <https://community.dynatrace.com/t/jdbc-bind-value-maximum-length/34531>\
**Category:** Open Q&A\
**Tags:** distributed-traces-classic, databases\
**Created:** [March 16, 2022, 7:56pm UTC](https://community.dynatrace.com/t/jdbc-bind-value-maximum-length/34531 "2022-03-16T19:56:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_13](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@Jeff\_13](https://community.dynatrace.com/u/Jeff_13)\
**Post date:** [March 16, 2022, 7:56pm UTC](https://community.dynatrace.com/t/jdbc-bind-value-maximum-length/34531/1 "2022-03-16T19:56:55Z")

</div>

We’re on version&nbsp;1.234.118.20220211-112119 of Oneagent. We’ve noticed some bind values being truncated when reviewing PurePaths. It usually occurs on&nbsp;XML data. What is the current maximum length for bind values?&nbsp;Is there to increase 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:** [March 16, 2022, 11:25pm UTC](https://community.dynatrace.com/t/jdbc-bind-value-maximum-length/34531/2 "2022-03-16T23:25:35Z")

</div>

[@Jeff\_13](https://community.dynatrace.com/user/44353),

Interesting question. Documentation doesn’t reveal the limit:

> **[Capture SQL bind variables with OneAgent](https://docs.dynatrace.com/docs/observe/application-observability/distributed-tracing/support-for-sql-bind-variables)**
>
> Enable Dynatrace OneAgent to capture the values of SQL bind variables.

If you have access to a truncated bind value in a Purepath, you can copy & count. Please beware that the best way is to look at the code, as for instance two consecutive spaces will count only as one in HTML. This has tricked me in the past in other contexts…

---

<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:** [March 17, 2022, 8:56am UTC](https://community.dynatrace.com/t/jdbc-bind-value-maximum-length/34531/3 "2022-03-17T08:56:26Z")

</div>

It’s a setting of the JDBC Sensor, not visible for the customers, unfortunately. Reach to DTONE via in-product chat to get the value for you.

However, it’s a better way to capture the information from the application code and not capture whole bind variables unless it’s really necessary.
