| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | --- | 
					
						
							|  |  |  | aliases: | 
					
						
							| 
									
										
										
										
											2022-12-10 00:36:04 +08:00
										 |  |  |   - ../data-sources/mssql/ | 
					
						
							|  |  |  |   - ../features/datasources/mssql/ | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | description: Guide for using Microsoft SQL Server in Grafana | 
					
						
							|  |  |  | keywords: | 
					
						
							|  |  |  |   - grafana | 
					
						
							|  |  |  |   - MSSQL | 
					
						
							|  |  |  |   - Microsoft | 
					
						
							|  |  |  |   - SQL | 
					
						
							|  |  |  |   - guide | 
					
						
							|  |  |  |   - Azure SQL Database | 
					
						
							| 
									
										
											  
											
												Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
											
										 
											2023-07-18 16:10:12 +08:00
										 |  |  | labels: | 
					
						
							|  |  |  |   products: | 
					
						
							|  |  |  |     - cloud | 
					
						
							|  |  |  |     - enterprise | 
					
						
							|  |  |  |     - oss | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | menuTitle: Microsoft SQL Server | 
					
						
							|  |  |  | title: Microsoft SQL Server data source | 
					
						
							|  |  |  | weight: 900 | 
					
						
							| 
									
										
										
										
											2024-05-28 22:17:49 +08:00
										 |  |  | refs: | 
					
						
							|  |  |  |   data-source-management: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/administration/data-source-management/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/administration/data-source-management/ | 
					
						
							|  |  |  |   add-template-variables-interval-ms: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/add-template-variables/#__interval_ms | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/add-template-variables/#__interval_ms | 
					
						
							|  |  |  |   build-dashboards: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/build-dashboards/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/build-dashboards/ | 
					
						
							|  |  |  |   add-template-variables-interval: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/add-template-variables/#__interval | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/add-template-variables/#__interval | 
					
						
							|  |  |  |   explore: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/explore/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/explore/ | 
					
						
							|  |  |  |   provisioning-data-sources: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/administration/provisioning/#data-sources | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/administration/provisioning/#data-sources | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  |   transformations: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/query-transform-data/transform-data/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana-cloud/visualizations/panels-visualizations/query-transform-data/transform-data/ | 
					
						
							|  |  |  |   alerting: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/alerting/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana-cloud/alerting-and-irm/alerting/ | 
					
						
							|  |  |  |   visualizations: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/visualizations/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/ | 
					
						
							|  |  |  |   variables: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana-cloud/visualizations/dashboards/variables/ | 
					
						
							|  |  |  |   annotate-visualizations: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/build-dashboards/annotate-visualizations/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana-cloud/visualizations/dashboards/build-dashboards/annotate-visualizations/ | 
					
						
							|  |  |  |   set-up-grafana-monitoring: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/setup-grafana/set-up-grafana-monitoring/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/setup-grafana/set-up-grafana-monitoring/ | 
					
						
							|  |  |  |   configure-mssql-data-source: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mssql/configure | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mssql/configure | 
					
						
							|  |  |  |   mssql-query-editor: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mssql/query-editor/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mssql/query-editor/ | 
					
						
							|  |  |  |   mssql-template-variables: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mssql/template-variables/ | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mssql/template-variables/ | 
					
						
							|  |  |  |   query-caching: | 
					
						
							|  |  |  |     - pattern: /docs/grafana/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/administration/data-source-management/#query-and-resource-caching | 
					
						
							|  |  |  |     - pattern: /docs/grafana-cloud/ | 
					
						
							|  |  |  |       destination: /docs/grafana/<GRAFANA_VERSION>/administration/data-source-management/#query-and-resource-caching | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  | # Microsoft SQL Server (MSSQL) data source
 | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  | Grafana ships with built-in support for Microsoft SQL Server (MSSQL). | 
					
						
							|  |  |  | You can query and visualize data from any Microsoft SQL Server 2005 or newer, including the Microsoft Azure SQL Database. | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  | Use this data source to create dashboards, explore SQL data, and monitor MSSQL-based workloads in real time. | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  | The following documentation helps you get started working with the Microsoft SQL Server (MSSQL) data source: | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  | - [Configure the Microsoft SQL Server data source](ref:configure-mssql-data-source) | 
					
						
							|  |  |  | - [Microsoft SQL Server query editor](ref:mssql-query-editor) | 
					
						
							|  |  |  | - [Microsoft SQL Server template variables](ref:mssql-template-variables) | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  | ## Get the most out of the data source
 | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  | After installing and configuring the Microsoft SQL Server data source, you can: | 
					
						
							| 
									
										
										
										
											2022-11-01 23:22:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-31 22:44:24 +08:00
										 |  |  | - Create a wide variety of [visualizations](ref:visualizations) | 
					
						
							|  |  |  | - Configure and use [templates and variables](ref:variables) | 
					
						
							|  |  |  | - Add [transformations](ref:transformations) | 
					
						
							|  |  |  | - Add [annotations](ref:annotate-visualizations) | 
					
						
							|  |  |  | - Set up [alerting](ref:alerting) | 
					
						
							|  |  |  | - Optimize performance with [query caching](ref:query-caching) |