# No create span for sql server queries

**URL:** <https://discuss.elastic.co/t/no-create-span-for-sql-server-queries/358801>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [May 6, 2024, 9:13am UTC](https://discuss.elastic.co/t/no-create-span-for-sql-server-queries/358801 "2024-05-06T09:13:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirtash](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@Kirtash](https://discuss.elastic.co/u/Kirtash)\
**Post date:** [May 6, 2024, 9:13am UTC](https://discuss.elastic.co/t/no-create-span-for-sql-server-queries/358801/1 "2024-05-06T09:13:19Z")

</div>

Good morning,

I would like remove using code in .net the span that elastic apm creates when in the method call a sql server query.

Is it possible? Is only for an specific method, because in this method we have more of 500 queries (is a loop) but in my case, this span is irrelevant.

Thanks for the help.
