# Database calls per Endpoint: error "spans table not accessible"

**URL:** <https://community.dynatrace.com/t/database-calls-per-endpoint-error-spans-table-not-accessible/44466>\
**Category:** DQL\
**Tags:** dql, dynatrace-saas, notebooks\
**Created:** [March 6, 2024, 10:20am UTC](https://community.dynatrace.com/t/database-calls-per-endpoint-error-spans-table-not-accessible/44466 "2024-03-06T10:20:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abrunnert](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@abrunnert](https://community.dynatrace.com/u/abrunnert)\
**Post date:** [March 6, 2024, 10:20am UTC](https://community.dynatrace.com/t/database-calls-per-endpoint-error-spans-table-not-accessible/44466/1 "2024-03-06T10:20:25Z")

</div>

Hi there,

I am trying to use one of the DQL sample query snippets (“Database calls per endpoint as timeseries”) on a Dynatrace SaaS instance. Unfortunately, this snippet doesn’t seem to work at the moment because the spans table is not accessible (see “spans is not a valid data object” in the screenshot below), even though the account is monitoring admin. In the latest DQL Office Hours video ([https://www.youtube.com/watch?v=Pwh0hmqqjIk](https://www.youtube.com/watch?v=Pwh0hmqqjIk)) [@dpunz](https://community.dynatrace.com/user/462) mentioned that the spans table is not yet “queryable”, if this is the case, when will this be changed and why is this snipped shipped if it cannot be used?

Thanks in advance,

Andreas

 ![brunnert1_0-1709719218993.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9f0c26be3f01279216e5625bba8621347d753fd0.png)

---

<div class="post-metadata">

**Author:** ![MichalOlszewski](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@MichalOlszewski](https://community.dynatrace.com/u/MichalOlszewski)\
**Post date:** [April 16, 2024, 12:29pm UTC](https://community.dynatrace.com/t/database-calls-per-endpoint-error-spans-table-not-accessible/44466/2 "2024-04-16T12:29:55Z")

</div>

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

I’ve just checked the snippet - it seems to work and allow to filter spans:

 ![MichalOlszewski_0-1713270559220.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5bc345eca4fd1dbad6ce459e484aa7b153002998.png)

Bests  
Michal
