# SQL Plugin - Interval

**URL:** <https://community.grafana.com/t/sql-plugin-interval/27182>\
**Category:** Grafana\
**Created:** [March 12, 2020, 4:07pm UTC](https://community.grafana.com/t/sql-plugin-interval/27182 "2020-03-12T16:07:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![reuvygroovy](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@reuvygroovy](https://community.grafana.com/u/reuvygroovy)\
**Post date:** [March 12, 2020, 4:07pm UTC](https://community.grafana.com/t/sql-plugin-interval/27182/1 "2020-03-12T16:07:17Z")

</div>

We are using the SQL Plugin.

When trying to run a query with a Group By Interval of 1Month (‘1M’) I get the following error: **error parsing interval 1M**

But in the documentation it states:

> **[Using Microsoft SQL Server in Grafana](https://grafana.com/docs/grafana/latest/features/datasources/mssql/)**
>
> Using Microsoft SQL Server in Grafana Only available in Grafana v5.1+.
> Grafana ships with a built-in Microsoft SQL Server (MSSQL) data source plugin that allows you to query and visualize data from any Microsoft SQL Server 2005 or newer, including...

  
`M` month

Is this a bug?

---

<div class="post-metadata">

**Author:** ![mareszym](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mareszym](https://community.grafana.com/u/mareszym)\
**Post date:** [April 2, 2020, 7:00am UTC](https://community.grafana.com/t/sql-plugin-interval/27182/2 "2020-04-02T07:00:16Z")

</div>

Did you manage to solve the problem ?  
I have the same …

---

<div class="post-metadata">

**Author:** ![reuvygroovy](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@reuvygroovy](https://community.grafana.com/u/reuvygroovy)\
**Post date:** [April 2, 2020, 7:23am UTC](https://community.grafana.com/t/sql-plugin-interval/27182/3 "2020-04-02T07:23:41Z")

</div>

Nope. I will try file a bug on github.

---

<div class="post-metadata">

**Author:** ![mareszym](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mareszym](https://community.grafana.com/u/mareszym)\
**Post date:** [April 2, 2020, 7:46am UTC](https://community.grafana.com/t/sql-plugin-interval/27182/4 "2020-04-02T07:46:07Z")

</div>

I tried yesterday, but this is reply from Grafana:

Please direct questions to our [community forums] or [Slack]. We use GitHub issues for bugs or feature requests.

That’s all …

---

<div class="post-metadata">

**Author:** ![reuvygroovy](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@reuvygroovy](https://community.grafana.com/u/reuvygroovy)\
**Post date:** [April 2, 2020, 7:57am UTC](https://community.grafana.com/t/sql-plugin-interval/27182/5 "2020-04-02T07:57:43Z")

</div>

This is a bug! I posted a bug here: [https://github.com/grafana/grafana/issues/23275](https://github.com/grafana/grafana/issues/23275)

---

<div class="post-metadata">

**Author:** ![mareszym](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mareszym](https://community.grafana.com/u/mareszym)\
**Post date:** [April 2, 2020, 8:13am UTC](https://community.grafana.com/t/sql-plugin-interval/27182/6 "2020-04-02T08:13:55Z")

</div>

We will waiting for answer.

---

<div class="post-metadata">

**Author:** ![danielgonzalez](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/danielgonzalez/32/7125_2.png) [@danielgonzalez](https://community.grafana.com/u/danielgonzalez)\
**Post date:** [April 3, 2020, 1:30pm UTC](https://community.grafana.com/t/sql-plugin-interval/27182/7 "2020-04-03T13:30:08Z")

</div>

This is not a bug, you are reading on wrong page,  
these intervals are for min data point interval, you need read on templating

> **[Variables](https://grafana.com/docs/grafana/latest/reference/templating/#interval-variables)**
>
> Variables Variables allows for more interactive and dynamic dashboards. Instead of hard-coding things like server, application and sensor name in your metric queries you can use variables in their place. Variables are shown as dropdown select boxes...

the allowed values are: `m`, `h` and `d`

---

<div class="post-metadata">

**Author:** ![reuvygroovy](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@reuvygroovy](https://community.grafana.com/u/reuvygroovy)\
**Post date:** [April 6, 2020, 12:13pm UTC](https://community.grafana.com/t/sql-plugin-interval/27182/8 "2020-04-06T12:13:58Z")

</div>

We got an answer and a confirmed bug: [  
https://github.com/grafana/grafana/issues/23275](https://github.com/grafana/grafana/issues/23275)

![image001.jpg](https://us1.discourse-cdn.com/grafana/original/2X/f/f464dd1c7c382c015b3fc53eebe1cd1aadffee61.jpeg)

---

<div class="post-metadata">

**Author:** ![mareszym](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mareszym](https://community.grafana.com/u/mareszym)\
**Post date:** [April 6, 2020, 3:17pm UTC](https://community.grafana.com/t/sql-plugin-interval/27182/9 "2020-04-06T15:17:31Z")

</div>

Yes, thank You.

Best regards
