# DB2 SQL ERROR - SQLCODE & SQLSTATE is hidden

**URL:** <https://community.dynatrace.com/t/db2-sql-error-sqlcode-sqlstate-is-hidden/37173>\
**Category:** Open Q&A\
**Tags:** databases\
**Created:** [November 7, 2022, 3:26pm UTC](https://community.dynatrace.com/t/db2-sql-error-sqlcode-sqlstate-is-hidden/37173 "2022-11-07T15:26:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akerimd](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@akerimd](https://community.dynatrace.com/u/akerimd)\
**Post date:** [November 7, 2022, 3:26pm UTC](https://community.dynatrace.com/t/db2-sql-error-sqlcode-sqlstate-is-hidden/37173/1 "2022-11-07T15:26:03Z")

</div>

Hello, the db team has a request from me, how can I make the \*\*\*\*\*’ s in the outgoing warnings visible as follows.

 ![akerimd_0-1667834742491.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0d0d1f8963597cccc153d832a859cc92b0986368.png)

Thank you,

---

<div class="post-metadata">

**Author:** ![andre\_f](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andre_f/32/29172_2.png) [@andre\_f](https://community.dynatrace.com/u/andre_f)\
**Post date:** [November 8, 2022, 8:44am UTC](https://community.dynatrace.com/t/db2-sql-error-sqlcode-sqlstate-is-hidden/37173/2 "2022-11-08T08:44:12Z")

</div>

Hi&nbsp;[@akerimd](https://community.dynatrace.com/user/56668)

You could check if users who have the permission “View sensitive request data” can see this data. Usually data is masked like this for people with insufficient permission - see&nbsp;[here](https://www.dynatrace.com/support/help/shortlink/global-privacy-settings#restrict-view-access).

Then you can adjust the permissions.

---

<div class="post-metadata">

**Author:** ![kalle\_lahtinen](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kalle\_lahtinen](https://community.dynatrace.com/u/kalle_lahtinen)\
**Post date:** [November 8, 2022, 10:24am UTC](https://community.dynatrace.com/t/db2-sql-error-sqlcode-sqlstate-is-hidden/37173/3 "2022-11-08T10:24:04Z")

</div>

Hi,

I think in this case the asterisks could simply indicate a variable, i.e. Dynatrace is lumping those different exception messages together in one row, even if the SQLCODE for example might differ between DB calls. To view the precise values, try opening the Distributed Traces view. You can add a filter “Failed state = only failed” there, to only show the relevant traces.

---

<div class="post-metadata">

**Author:** ![akerimd](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@akerimd](https://community.dynatrace.com/u/akerimd)\
**Post date:** [December 18, 2022, 1:48pm UTC](https://community.dynatrace.com/t/db2-sql-error-sqlcode-sqlstate-is-hidden/37173/4 "2022-12-18T13:48:45Z")

</div>

We have a DB2 database and the db team selects the relevant database and sees \*\*\*\*\*\*\*\* like below,

![akerimd_0-1671371211199.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/9/89e974d51e1492f3e11fa53b11dadab4199d1af5.png)

in the codes in the failure analysis section from the detail section, how can I make it visible.&nbsp;I’ve tried the suggestions above but haven’t found a solution yet, Please help me thank you.

---

<div class="post-metadata">

**Author:** ![kalle\_lahtinen](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kalle\_lahtinen](https://community.dynatrace.com/u/kalle_lahtinen)\
**Post date:** [December 19, 2022, 7:35am UTC](https://community.dynatrace.com/t/db2-sql-error-sqlcode-sqlstate-is-hidden/37173/5 "2022-12-19T07:35:22Z")

</div>

The solution was to look at individual traces, did you try that? I’m not aware of any way to make them visible on the failure analysis page.
