# \#mssql

**URL:** https://community.grafana.com/tag/mssql/7.md

[Latest](https://community.grafana.com/latest.md) · [Categories](https://community.grafana.com/categories.md) · [Tags](https://community.grafana.com/tags.md)

---

## [Graph doesn't show last 2 hours when using certain Quick ranges](https://community.grafana.com/t/graph-doesnt-show-last-2-hours-when-using-certain-quick-ranges/18771)

<div class="topic-metadata">

**Author:** [@derlmeier](https://community.grafana.com/u/derlmeier)\
**Replies:** 9\
**Last updated:** [October 25, 2024, 10:01am UTC](https://community.grafana.com/t/graph-doesnt-show-last-2-hours-when-using-certain-quick-ranges/18771 "2024-10-25T10:01:46Z")

</div>

Hi, i’m playing around with grafana atm and i observed some strange behavour. I aggregate some timeline data in an mssql table. so there is a timestamp, a metric and a value. When displaying in a graph panel the last…

---

## [Not able to connect my MS sql server Database Source](https://community.grafana.com/t/not-able-to-connect-my-ms-sql-server-database-source/12254)

<div class="topic-metadata">

**Author:** [@shivendra](https://community.grafana.com/u/shivendra)\
**Replies:** 36\
**Last updated:** [August 19, 2024, 2:18pm UTC](https://community.grafana.com/t/not-able-to-connect-my-ms-sql-server-database-source/12254 "2024-08-19T14:18:36Z")

</div>

Hi, I am Not able to add my Ms Sql server database sorce . My default host for grafana is 3000 My Sql server database is on my local machine pls find image below

---

## [Annotation Query, select multiple fields as tags](https://community.grafana.com/t/annotation-query-select-multiple-fields-as-tags/77774)

<div class="topic-metadata">

**Author:** [@reisenrich1](https://community.grafana.com/u/reisenrich1)\
**Replies:** 7\
**Last updated:** [May 18, 2024, 8:22am UTC](https://community.grafana.com/t/annotation-query-select-multiple-fields-as-tags/77774 "2024-05-18T08:22:08Z")

</div>

Howdy, I am new to the annotation queries but understand that the main fields are event, event stop, text, and tags. I am querying a ms sql database for event data to display as annotations in grafana. My query works a…

---

## [Does Grafana store data queried to disk?](https://community.grafana.com/t/does-grafana-store-data-queried-to-disk/9061)

<div class="topic-metadata">

**Author:** [@jjsung](https://community.grafana.com/u/jjsung)\
**Replies:** 8\
**Last updated:** [February 28, 2024, 9:03am UTC](https://community.grafana.com/t/does-grafana-store-data-queried-to-disk/9061 "2024-02-28T09:03:56Z")

</div>

For example, if I query 24 hours worth of data from SQL server and the next minute it executes the same query…it would be a waste to repeat 99% of the time. I think some data/metadata are stored in the Grafana\\data folde…

---

## [How does the Status History panel work?](https://community.grafana.com/t/how-does-the-status-history-panel-work/50518)

<div class="topic-metadata">

**Author:** [@xbalayer](https://community.grafana.com/u/xbalayer)\
**Replies:** 8\
**Last updated:** [January 31, 2024, 11:36am UTC](https://community.grafana.com/t/how-does-the-status-history-panel-work/50518 "2024-01-31T11:36:08Z")

</div>

Hi On the grafana website there is a status history panel like the below What does the data need to look like for this to work? I’ve got a simple sql query that gives me server name timestamp value or simply put…

---

## [MSSQL query timeout](https://community.grafana.com/t/mssql-query-timeout/19528)

<div class="topic-metadata">

**Author:** [@jeremye](https://community.grafana.com/u/jeremye)\
**Replies:** 11\
**Last updated:** [January 19, 2024, 4:19pm UTC](https://community.grafana.com/t/mssql-query-timeout/19528 "2024-01-19T16:19:57Z")

</div>

Hi, We are running a SQL query. On our MSSQL it’s working fine after 5min of running. When i past the same query on Grafana, i get the error message : 504 Gateway Time-out. The server didn’t respond in time How could…

---

## [Problem with timeseries graph without common time for the metric series after upgrading to grafana 8](https://community.grafana.com/t/problem-with-timeseries-graph-without-common-time-for-the-metric-series-after-upgrading-to-grafana-8/55008)

<div class="topic-metadata">

**Author:** [@togarha](https://community.grafana.com/u/togarha)\
**Replies:** 3\
**Last updated:** [December 18, 2023, 11:34am UTC](https://community.grafana.com/t/problem-with-timeseries-graph-without-common-time-for-the-metric-series-after-upgrading-to-grafana-8/55008 "2023-12-18T11:34:46Z")

</div>

I’m migrating from grafana 7.4.3 to grafana 8.2.1 and I have problems with some of my current time-series graphs that have more than one metric series. The problem is that the different metric series don’t have a common…

---

## [Don't connect points when if timespan is over certain value](https://community.grafana.com/t/dont-connect-points-when-if-timespan-is-over-certain-value/71587)

<div class="topic-metadata">

**Author:** [@julek23](https://community.grafana.com/u/julek23)\
**Replies:** 5\
**Last updated:** [December 7, 2023, 1:21pm UTC](https://community.grafana.com/t/dont-connect-points-when-if-timespan-is-over-certain-value/71587 "2023-12-07T13:21:23Z")

</div>

HI there, I read this question multiple times, but didn’t find a solution for me yet. I want the values not be connected if the time gab between 2 points is bigger than a certain value. I know there is a option where I…

---

## [Grafana with SCOM](https://community.grafana.com/t/grafana-with-scom/46099)

<div class="topic-metadata">

**Author:** [@shekkeer](https://community.grafana.com/u/shekkeer)\
**Replies:** 2\
**Last updated:** [September 26, 2023, 8:54pm UTC](https://community.grafana.com/t/grafana-with-scom/46099 "2023-09-26T20:54:55Z")

</div>

Hi Team, Recently i working with grafana to integrate with SCOM for Dashboard setup. Please help me with this. Added SCOM SQL DB datasource.

---

## [Creating Stacked Bar Charts on Grafana using data from SQL Server](https://community.grafana.com/t/creating-stacked-bar-charts-on-grafana-using-data-from-sql-server/8200)

<div class="topic-metadata">

**Author:** [@adsingh](https://community.grafana.com/u/adsingh)\
**Replies:** 14\
**Last updated:** [November 8, 2021, 12:50pm UTC](https://community.grafana.com/t/creating-stacked-bar-charts-on-grafana-using-data-from-sql-server/8200 "2021-11-08T12:50:59Z")

</div>

Hi During a particular day, I have data from multiple categories say A,B,C. I want to create a bar chart in which for every day there is a single bar with different colors for the different categories. The count of cate…

---

## [Grafana Logs Panel + MSSQL](https://community.grafana.com/t/grafana-logs-panel-mssql/33202)

<div class="topic-metadata">

**Author:** [@adoconnection](https://community.grafana.com/u/adoconnection)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 7:09am UTC](https://community.grafana.com/t/grafana-logs-panel-mssql/33202 "2023-06-15T07:09:38Z")

</div>

What kind of data Grafana Log Panel expects from data source? Documentation does not say a word about it. /docs/grafana/next/visualizations/logs-panel/ Gauge / Graph query stucture does not work, other fields does not w…

---

## [MSSQL servers logs extracted to loki Grafana dashboard with space in between character's](https://community.grafana.com/t/mssql-servers-logs-extracted-to-loki-grafana-dashboard-with-space-in-between-characters/63451)

<div class="topic-metadata">

**Author:** [@pvdurgarao](https://community.grafana.com/u/pvdurgarao)\
**Replies:** 14\
**Last updated:** [May 24, 2023, 3:17pm UTC](https://community.grafana.com/t/mssql-servers-logs-extracted-to-loki-grafana-dashboard-with-space-in-between-characters/63451 "2023-05-24T15:17:33Z")

</div>

Hi Team, Windows environment : Promtail,Loki and Grafana setup i have setup promtail , loki and grafana dash for extracting the MSSQLserver logs . The logs were displaying on grafana dashboard as below L o g i n f a …

---

## [Double single quotes](https://community.grafana.com/t/double-single-quotes/65604)

<div class="topic-metadata">

**Author:** [@reuvygroovy](https://community.grafana.com/u/reuvygroovy)\
**Replies:** 8\
**Last updated:** [May 11, 2023, 4:08am UTC](https://community.grafana.com/t/double-single-quotes/65604 "2023-05-11T04:08:47Z")

</div>

I’m trying to embed a variable in a SQL query, but I need the query as a string. So I need, when selecting all values, instead of getting: ‘a’,‘b’,‘c’ I need two singe quotes: ‘‘a’’,‘‘bb’’,‘‘c’’ I have been looking …

---

## [Grafana v9 is tryning to merge times values axes when using mulitple metrics and create 0 value if need be](https://community.grafana.com/t/grafana-v9-is-tryning-to-merge-times-values-axes-when-using-mulitple-metrics-and-create-0-value-if-need-be/84419)

<div class="topic-metadata">

**Author:** [@jbpub](https://community.grafana.com/u/jbpub)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 2:34pm UTC](https://community.grafana.com/t/grafana-v9-is-tryning-to-merge-times-values-axes-when-using-mulitple-metrics-and-create-0-value-if-need-be/84419 "2023-04-26T14:34:50Z")

</div>

Hello, I am migrating from Grafana v7.3.7 to Grafana v9.4.3. I encounter a blocking problem during my migration concerning the use of a Graph panel containing only 1 query A but returning a dataset with two metrics, se…

---

## [MSSQL variable all problem](https://community.grafana.com/t/mssql-variable-all-problem/16523)

<div class="topic-metadata">

**Author:** [@cankaya07](https://community.grafana.com/u/cankaya07)\
**Replies:** 12\
**Last updated:** [February 3, 2023, 7:02pm UTC](https://community.grafana.com/t/mssql-variable-all-problem/16523 "2023-02-03T19:02:42Z")

</div>

Hi i am highly newbie about grafana, My question about variables. Does Grafana support drilldown variables? I mean when i choose or select option/field on one variable. And other variable can change automatically/proper…

---

## [Getting issue in creating grafana variables through mssql server datasource](https://community.grafana.com/t/getting-issue-in-creating-grafana-variables-through-mssql-server-datasource/80729)

<div class="topic-metadata">

**Author:** [@garimachouhan](https://community.grafana.com/u/garimachouhan)\
**Replies:** 0\
**Last updated:** [January 31, 2023, 5:37am UTC](https://community.grafana.com/t/getting-issue-in-creating-grafana-variables-through-mssql-server-datasource/80729 "2023-01-31T05:37:31Z")

</div>

Grafana Version 9.1.3 Using mssql server as datasource I am trying to create custom variables. In custom variables i have mentioned the names of 2 columns, it is working fine when i am not selecting Multi-value, and in…

---

## [Connect to a SQL Listener](https://community.grafana.com/t/connect-to-a-sql-listener/69748)

<div class="topic-metadata">

**Author:** [@jimbob](https://community.grafana.com/u/jimbob)\
**Replies:** 5\
**Last updated:** [January 27, 2023, 3:50pm UTC](https://community.grafana.com/t/connect-to-a-sql-listener/69748 "2023-01-27T15:50:33Z")

</div>

I can connect directly to a SQL server in a cluster, but when I try and connect to the listener of the cluster, the connection request times out. We are connecting on port 1633. Cluster is hosted on Virtual machines in …

---

## [Multiple timeseries, pivot column](https://community.grafana.com/t/multiple-timeseries-pivot-column/28487)

<div class="topic-metadata">

**Author:** [@jitans](https://community.grafana.com/u/jitans)\
**Replies:** 14\
**Last updated:** [December 16, 2022, 9:13am UTC](https://community.grafana.com/t/multiple-timeseries-pivot-column/28487 "2022-12-16T09:13:56Z")

</div>

I’d like to know if it’s possible and how to render multiple timeseries defining one column of the result set as a pivot column. For some queries I don’t know in advance how many series I’m getting hence is not possible …

---

## [How can I get Grafana All Teams with HTTP API](https://community.grafana.com/t/how-can-i-get-grafana-all-teams-with-http-api/40647)

<div class="topic-metadata">

**Author:** [@tarikziyabilgin](https://community.grafana.com/u/tarikziyabilgin)\
**Replies:** 3\
**Last updated:** [December 16, 2022, 7:24am UTC](https://community.grafana.com/t/how-can-i-get-grafana-all-teams-with-http-api/40647 "2022-12-16T07:24:28Z")

</div>

Hi, I’m trying to synchronize the Grafana teams and the teams on my own project. So I need to know how to get all teams from grafana with Http API. Get All Users function is there in grafana http api documentation but G…

---

## [MSSQL Function expression](https://community.grafana.com/t/mssql-function-expression/63211)

<div class="topic-metadata">

**Author:** [@guedesgabriel91](https://community.grafana.com/u/guedesgabriel91)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 8:11pm UTC](https://community.grafana.com/t/mssql-function-expression/63211 "2022-10-31T20:11:53Z")

</div>

I have a SQL Server query where I need use the in Grafana. Folow de MSSQL query: SELECT Name, Timestamp, Value FROM EpmQueryAggregateFunction(-3, '29-03-2022 00:00:00', '30-03-2022 00:00:00', 3600000, 'TimeAverage', …

---

## [Grafana should not allow empty values for variable selection to avoid template errors](https://community.grafana.com/t/grafana-should-not-allow-empty-values-for-variable-selection-to-avoid-template-errors/64630)

<div class="topic-metadata">

**Author:** [@emrahsaglam](https://community.grafana.com/u/emrahsaglam)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 1:28pm UTC](https://community.grafana.com/t/grafana-should-not-allow-empty-values-for-variable-selection-to-avoid-template-errors/64630 "2022-10-11T13:28:26Z")

</div>

I creates few variables which do not include null values, but when I change the variable selection It can be empty values automatically selected then it cause template errors. I use SQL datasource and SQL queries. When …

---

## [Variables per panel instead of per dashbaord](https://community.grafana.com/t/variables-per-panel-instead-of-per-dashbaord/46633)

<div class="topic-metadata">

**Author:** [@schluk5](https://community.grafana.com/u/schluk5)\
**Replies:** 4\
**Last updated:** [October 10, 2022, 2:02pm UTC](https://community.grafana.com/t/variables-per-panel-instead-of-per-dashbaord/46633 "2022-10-10T14:02:40Z")

</div>

Hi, I have a dashboard with 3 panels, they all use the same variables for filtering. How can I set defaults for those variables per panel/chart and not only “globally” for the whole dashboard? Many thanks!

---

## [Weird behaviour with gauge with gauge visualization](https://community.grafana.com/t/weird-behaviour-with-gauge-with-gauge-visualization/72617)

<div class="topic-metadata">

**Author:** [@jgalan1](https://community.grafana.com/u/jgalan1)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 5:51am UTC](https://community.grafana.com/t/weird-behaviour-with-gauge-with-gauge-visualization/72617 "2022-09-21T05:51:57Z")

</div>

Hi, I´m working with a SQL server, and I wanted to do some porcentages with the gauge tool. I did my querys to get 1 value per query, I reduced the query to an expression (max, mode strict) and I operated them with oper…

---

## [Table: joining MS SQL and InfluxDB queries](https://community.grafana.com/t/table-joining-ms-sql-and-influxdb-queries/56347)

<div class="topic-metadata">

**Author:** [@felipefischmann](https://community.grafana.com/u/felipefischmann)\
**Replies:** 4\
**Last updated:** [August 9, 2022, 8:01am UTC](https://community.grafana.com/t/table-joining-ms-sql-and-influxdb-queries/56347 "2022-08-09T08:01:18Z")

</div>

What Grafana version and what operating system are you using? v8.0.3 (cae5c5e46b) Windows 10 What are you trying to achieve? In a table panel, I have several queries on a MS SQL source and would like to join a qu…

---

## [Extract last character of a variable for a SQL filter](https://community.grafana.com/t/extract-last-character-of-a-variable-for-a-sql-filter/68139)

<div class="topic-metadata">

**Author:** [@jmu](https://community.grafana.com/u/jmu)\
**Replies:** 4\
**Last updated:** [July 22, 2022, 8:21am UTC](https://community.grafana.com/t/extract-last-character-of-a-variable-for-a-sql-filter/68139 "2022-07-22T08:21:28Z")

</div>

Hi, I have a variable called “Maquina” that has values: S1,S2,S3… We have a graph that has a SQL source where the filter is going to be this “Maquina” variable. However, we want only the number: 1,2,3. How do we extrac…

---

## [Use "wide-format" data for State timeline?](https://community.grafana.com/t/use-wide-format-data-for-state-timeline/62080)

<div class="topic-metadata">

**Author:** [@felipefischmann](https://community.grafana.com/u/felipefischmann)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 2:34pm UTC](https://community.grafana.com/t/use-wide-format-data-for-state-timeline/62080 "2022-05-20T14:34:06Z")

</div>

What Grafana version and what operating system are you using? v8.3.1 Windows What are you trying to achieve? I’d like to use the State timeline to visualise when some series are active. The trick is that the data…

---

## [Stat plugin: ignores alias from db query](https://community.grafana.com/t/stat-plugin-ignores-alias-from-db-query/65394)

<div class="topic-metadata">

**Author:** [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Replies:** 3\
**Last updated:** [May 10, 2022, 7:56am UTC](https://community.grafana.com/t/stat-plugin-ignores-alias-from-db-query/65394 "2022-05-10T07:56:11Z")

</div>

What is your Grafana version? 8.4.5 Are you using Grafana Cloud or self-hosted Grafana? self hosted List the datasource associated with the alert mssql What are you trying to achieve? Display multiple values in a…

---

## [Switch to different type of Datasource](https://community.grafana.com/t/switch-to-different-type-of-datasource/65365)

<div class="topic-metadata">

**Author:** [@rach1tdani](https://community.grafana.com/u/rach1tdani)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 11:44am UTC](https://community.grafana.com/t/switch-to-different-type-of-datasource/65365 "2022-05-09T11:44:00Z")

</div>

I have about 25-30 dashboards with 10-15 queries each and I want to switch the existing Datasource (MSSQL) to another one (MYSQL). Most of the queries will also need to be changed due to syntax differences. Is there any…

---

## [Grafana Panic when expression used](https://community.grafana.com/t/grafana-panic-when-expression-used/62783)

<div class="topic-metadata">

**Author:** [@albef](https://community.grafana.com/u/albef)\
**Replies:** 3\
**Last updated:** [May 6, 2022, 1:49am UTC](https://community.grafana.com/t/grafana-panic-when-expression-used/62783 "2022-05-06T01:49:02Z")

</div>

Hi all. I’m trying to use expression over a MS SQL Server. With builded version 8.4.3/8.4.4 available for download no problem at all (expression is correctly parsed and executed) while I cannot use it if I compile mysel…

---

## [Graph with PIVOT returns: found no column named "time"](https://community.grafana.com/t/graph-with-pivot-returns-found-no-column-named-time/65097)

<div class="topic-metadata">

**Author:** [@dioscar90](https://community.grafana.com/u/dioscar90)\
**Replies:** 5\
**Last updated:** [May 3, 2022, 7:34pm UTC](https://community.grafana.com/t/graph-with-pivot-returns-found-no-column-named-time/65097 "2022-05-03T19:34:11Z")

</div>

Hello, everybody. I wrote an SQL Server with PIVOT where my intention is to show the factory’s daily goals, and what have been made in every day. I’ll show you my code: DECLARE @columns\_pivot AS nvarchar(MAX), @command…

[Next page](https://community.grafana.com/tag/mssql/7.md?match_all_tags=true&page=1&tags%5B%5D=mssql)
