From c5e027a16ab45bfaa528ddd679dd5336ba2f654b Mon Sep 17 00:00:00 2001 From: Mayur Singal <39544459+ulixius9@users.noreply.github.com> Date: Wed, 17 Jan 2024 11:41:50 +0530 Subject: [PATCH] Minor: Docs - MSSQL Usage & Lineage Requirements (#14746) --- .../content/v1.2.x/connectors/database/mssql/index.md | 9 +++++++++ .../content/v1.2.x/connectors/database/mssql/yaml.md | 9 +++++++++ .../v1.3.x-SNAPSHOT/connectors/database/mssql/index.md | 9 +++++++++ .../v1.3.x-SNAPSHOT/connectors/database/mssql/yaml.md | 9 +++++++++ 4 files changed, 36 insertions(+) diff --git a/openmetadata-docs/content/v1.2.x/connectors/database/mssql/index.md b/openmetadata-docs/content/v1.2.x/connectors/database/mssql/index.md index 5df539c54eaf..aa1fa7194b5d 100644 --- a/openmetadata-docs/content/v1.2.x/connectors/database/mssql/index.md +++ b/openmetadata-docs/content/v1.2.x/connectors/database/mssql/index.md @@ -57,6 +57,15 @@ CREATE USER Mary WITH PASSWORD = '********'; -- Grant SELECT on table GRANT SELECT TO Mary; ``` + +### Usage & Lineage consideration + +To perform the query analysis for Usage and Lineage computation, we fetch the query logs from `sys.dm_exec_cached_plans`, `sys.dm_exec_query_stats` & `sys.dm_exec_sql_text` system tables. To access these tables your user must have `VIEW SERVER STATE` privilege. + +```sql +GRANT VIEW SERVER STATE TO YourUser; +``` + ### For Remote Connection #### 1. SQL Server running diff --git a/openmetadata-docs/content/v1.2.x/connectors/database/mssql/yaml.md b/openmetadata-docs/content/v1.2.x/connectors/database/mssql/yaml.md index c876dc865314..1a901e5cf63f 100644 --- a/openmetadata-docs/content/v1.2.x/connectors/database/mssql/yaml.md +++ b/openmetadata-docs/content/v1.2.x/connectors/database/mssql/yaml.md @@ -57,6 +57,15 @@ CREATE USER Mary WITH PASSWORD = '********'; -- Grant SELECT on table GRANT SELECT TO Mary; ``` + +### Usage & Lineage consideration + +To perform the query analysis for Usage and Lineage computation, we fetch the query logs from `sys.dm_exec_cached_plans`, `sys.dm_exec_query_stats` & `sys.dm_exec_sql_text` system tables. To access these tables your user must have `VIEW SERVER STATE` privilege. + +```sql +GRANT VIEW SERVER STATE TO YourUser; +``` + ### Python Requirements To run the MSSQL ingestion, you will need to install: diff --git a/openmetadata-docs/content/v1.3.x-SNAPSHOT/connectors/database/mssql/index.md b/openmetadata-docs/content/v1.3.x-SNAPSHOT/connectors/database/mssql/index.md index 2004787a2998..820453c8c00c 100644 --- a/openmetadata-docs/content/v1.3.x-SNAPSHOT/connectors/database/mssql/index.md +++ b/openmetadata-docs/content/v1.3.x-SNAPSHOT/connectors/database/mssql/index.md @@ -57,6 +57,15 @@ CREATE USER Mary WITH PASSWORD = '********'; -- Grant SELECT on table GRANT SELECT TO Mary; ``` + +### Usage & Lineage consideration + +To perform the query analysis for Usage and Lineage computation, we fetch the query logs from `sys.dm_exec_cached_plans`, `sys.dm_exec_query_stats` & `sys.dm_exec_sql_text` system tables. To access these tables your user must have `VIEW SERVER STATE` privilege. + +```sql +GRANT VIEW SERVER STATE TO YourUser; +``` + ### For Remote Connection #### 1. SQL Server running diff --git a/openmetadata-docs/content/v1.3.x-SNAPSHOT/connectors/database/mssql/yaml.md b/openmetadata-docs/content/v1.3.x-SNAPSHOT/connectors/database/mssql/yaml.md index 22326a15218a..3e338343d9be 100644 --- a/openmetadata-docs/content/v1.3.x-SNAPSHOT/connectors/database/mssql/yaml.md +++ b/openmetadata-docs/content/v1.3.x-SNAPSHOT/connectors/database/mssql/yaml.md @@ -57,6 +57,15 @@ CREATE USER Mary WITH PASSWORD = '********'; -- Grant SELECT on table GRANT SELECT TO Mary; ``` + +### Usage & Lineage consideration + +To perform the query analysis for Usage and Lineage computation, we fetch the query logs from `sys.dm_exec_cached_plans`, `sys.dm_exec_query_stats` & `sys.dm_exec_sql_text` system tables. To access these tables your user must have `VIEW SERVER STATE` privilege. + +```sql +GRANT VIEW SERVER STATE TO YourUser; +``` + ### Python Requirements To run the MSSQL ingestion, you will need to install: