Skip to content

Commit bbc0f48

Browse files
VanMSFTjaszymas
andauthored
Apply suggestions from Jakub's code review
Co-authored-by: jaszymas <jaszymas@microsoft.com>
1 parent 1016d1f commit bbc0f48

9 files changed

Lines changed: 22 additions & 17 deletions

docs/relational-databases/security/permissions-database-engine.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,10 @@ These permissions currently only apply to Azure SQL Database, but are not the on
363363

364364
| Base securable | Granular permissions on base securable | Permission type code | Securable that contains base securable | Permission on container securable that implies granular permission on base securable |Description |
365365
|--|--|--|--|--|--|
366-
|DATABASE|ENABLE LEDGER|EL|SERVER|CONTROL|Enables the grantee to create new ledger tables and convert existing tables to ledger tables.|
367-
|DATABASE|ALTER LEDGER|ALR|SERVER|CONTROL|Enables the grantee to convert existing ledger tables to regular tables, rename and drop ledger tables or columns.|
366+
|DATABASE|ENABLE LEDGER|EL|SERVER|CONTROL|Enables the grantee to create new ledger tables.|
367+
368+
|DATABASE|ALTER LEDGER|ALR|SERVER|CONTROL|Enables the grantee to drop ledger tables.|
369+
368370
|DATABASE|VIEW LEDGER CONTENT|VLC|SERVER|CONTROL|Enables the grantee to view database-level ledger catalog views and invoke verification.|
369371
|DATABASE|GENERATE LEDGER DIGEST|GLD|SERVER|CONTROL|Enables the grantee to generate a ledger digest.|
370372

docs/relational-databases/system-catalog-views/sys-columns-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
7878
|is_masked|**bit**|**Applies to**: [!INCLUDE[ssCurrentLong](../../includes/sscurrent-md.md)] and later, [!INCLUDE[ssSDS_md](../../includes/sssds-md.md)].<br /><br /> Indicates if the column is masked by a dynamic data masking:<br /><br /> 0 = regular, not-masked column<br /><br /> 1 = column is masked|
7979
|graph_type |**int** |Internal column with a set of values. The values are between 1-8 for graph columns and `NULL` for others. |
8080
|graph_type_desc |**nvarchar(60)** |internal column with a set of values |
81-
|is_dropped_ledger_table_column |**bit** |**Applies to**: [!INCLUDE[sssdsfull](../../includes/sssdsfull-md.md)]. <br/><br/>Indicates a ledger table column that has been dropped.|
81+
|ledger_view_column_type|**tinyint**|**Applies to**: [!INCLUDE[ssSDS_md](../../includes/sssds-md.md)].<br /><br /> If not NULL, indicates the type of a column in a ledger view:<br /><br /> 1 = TRANSACTION_ID<br /> 2 = SEQUENCE_NUMBER<br /> 3 = OPERATION_TYPE<br /> 4 = OPERATION_TYPE_DESC|
82+
|ledger_view_column_type_desc|**nvarchar(60)**|**Applies to**: [!INCLUDE[ssSDS_md](../../includes/sssds-md.md)].<br /><br /> If not NULL, contains a textual description of the the type of a column in a ledger view:<br /><br /> TRANSACTION_ID<br /> SEQUENCE_NUMBER<br /> OPERATION_TYPE<br /> OPERATION_TYPE_DESC|
83+
8284

8385
## Permissions
8486
[!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md).

docs/relational-databases/system-catalog-views/sys-database-ledger-digest-locations-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.author: vanto
1616

1717
[!INCLUDE [Azure SQL Database](../../includes/applies-to-version/asdb.md)]
1818

19-
Captures the current and the historical ledger digest storage endpoints.
19+
Captures the current and the historical ledger digest storage endpoints for the ledger feature.
2020

2121
|Column name|Data type|Description|
2222
|-----------------|---------------|-----------------|
@@ -36,4 +36,4 @@ Requires the **VIEW LEDGER CONTENT** or **ALTER LEDGER CONFIGURATION** permissio
3636
- [sys.ledger_column_history (Transact-SQL)](sys-ledger-column-history-transact-sql.md)
3737
- [sys.sp_generate_database_ledger_digest (Transact-SQL)](../system-stored-procedures/sys-sp-generate-database-ledger-digest-transact-sql.md)
3838
- [sys.sp_verify_database_ledger (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-transact-sql.md)
39-
- [sys.sp_verify_database_ledger_from_digest_storage (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md)
39+
- [sys.sp_verify_database_ledger_from_digest_storage (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md)

docs/relational-databases/system-catalog-views/sys-database-ledger-transaction-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.author: vanto
1616

1717
[!INCLUDE [Azure SQL Database](../../includes/applies-to-version/asdb.md)]
1818

19-
Captures the cryptographically protected history of database transactions that update ledger tables in the database. A row in this view represents a database transaction.
19+
Captures the cryptographically protected history of database transactions against ledger tables in the database. A row in this view represents a database transaction.
2020

2121
| Column name | Data type | Description |
2222
| --- | --- | --- |
@@ -39,4 +39,4 @@ Requires the **VIEW LEDGER CONTENT** permission.
3939
- [sys.database_ledger_digest_locations (Transact-SQL)](sys-database-ledger-digest-locations-transact-sql.md)
4040
- [sys.sp_generate_database_ledger_digest (Transact-SQL)](../system-stored-procedures/sys-sp-generate-database-ledger-digest-transact-sql.md)
4141
- [sys.sp_verify_database_ledger (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-transact-sql.md)
42-
- [sys.sp_verify_database_ledger_from_digest_storage (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md)
42+
- [sys.sp_verify_database_ledger_from_digest_storage (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md)

docs/relational-databases/system-catalog-views/sys-ledger-column-history-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Captures the cryptographically protected history of operations on columns of led
2323
|**object_id**|**int**|The object ID of the ledger table.|
2424
|**column_id**|**int**|The column ID of the column in a ledger table. |
2525
|**column_name**|**sysname**|The name of the column in ledger table. If the operation has changed the column name, this column captures the new column name.|
26-
|**operation_type**|**tinyint**|The numeric value indicating the type of the operation<br/><br/>0 = CREATE – creating a column as part of creating the table containing the column using CREATE TABLE.<br/>1 = ADD – adding a column in a ledger table, using ALTER TABLE/ADD COLUMN.<br/>2 = RENAME – renaming a column in a ledger table.<br/>3 = DROP – dropping a column in a ledger table.|
26+
|**operation_type**|**tinyint**|The numeric value indicating the type of the operation<br/><br/>0 = CREATE – creating a column as part of creating the table containing the column using CREATE TABLE.<br/>1 = ADD – adding a column in a ledger table, using ALTER TABLE/ADD COLUMN..|
2727
|**operation_type_desc**|**nvarchar(60)**|Textual description of the value of operation_type.|
2828

2929
## Permissions
@@ -38,4 +38,4 @@ Requires the **VIEW LEDGER CONTENT** permission.
3838
- [sys.database_ledger_digest_locations (Transact-SQL)](sys-database-ledger-digest-locations-transact-sql.md)
3939
- [sys.sp_generate_database_ledger_digest (Transact-SQL)](../system-stored-procedures/sys-sp-generate-database-ledger-digest-transact-sql.md)
4040
- [sys.sp_verify_database_ledger (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-transact-sql.md)
41-
- [sys.sp_verify_database_ledger_from_digest_storage (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md)
41+
- [sys.sp_verify_database_ledger_from_digest_storage (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md)

docs/relational-databases/system-catalog-views/sys-ledger-table-history-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Captures the cryptographically protected history of operations on ledger tables:
2525
|**table_name**|**sysname**|The name of the ledger table. If the operation has changed the table name, this column captures the new table name.|
2626
|**ledger_view_schema_name**|**sysname**|The name of the schema containing the ledger view for the ledger table. If the operation has changed the schema name, this column captures the new schema name.|
2727
|**ledger_view_name**|**sysname**|The name of the ledger view for the ledger table. If the operation has changed the view name, this column captures the new view name.|
28-
|**operation_type**|**tinyint**|The numeric value indicating the type of the operation<br/><br/>0 = CREATE – creating a ledger table.<br/>1 = DROP – dropping a ledger table.<br/>2 = RENAME – renaming a ledger table.<br/>3 = RENAME_VIEW – renaming the ledger view for a ledger table.<br/>4 = ENABLE_LEDGER – converting an existing table to a ledger table.<br/>5 = DISABLE_LEDGER – converting a ledger table to a regular table.|
28+
|**operation_type**|**tinyint**|The numeric value indicating the type of the operation<br/><br/>0 = CREATE – creating a ledger table.<br/>1 = DROP – dropping a ledger table.|
2929
|**operation_type_desc**|**nvarchar(60)**|Textual description of the value of operation_type.|
3030
|**transaction_id**|**bigint**|The transaction of the ID that included the operation on the ledger table. It identifies a row in [sys.database_ledger_transaction](sys-database-ledger-transaction-transact-sql.md).|
3131
|**sequence_number**|**bigint**|The sequence number of the operation within the transaction.|
@@ -92,4 +92,4 @@ ON h.transaction_id = t.transaction_id
9292
- [sys.database_ledger_digest_locations (Transact-SQL)](sys-database-ledger-digest-locations-transact-sql.md)
9393
- [sys.sp_generate_database_ledger_digest (Transact-SQL)](../system-stored-procedures/sys-sp-generate-database-ledger-digest-transact-sql.md)
9494
- [sys.sp_verify_database_ledger (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-transact-sql.md)
95-
- [sys.sp_verify_database_ledger_from_digest_storage (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md)
95+
- [sys.sp_verify_database_ledger_from_digest_storage (Transact-SQL)](../system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md)

docs/relational-databases/system-stored-procedures/sys-sp-verify-database-ledger-from-digest-storage-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ A JSON document containing a list of ledger digests locations:
4444
Example of the input JSON document:
4545

4646
```json
47-
[{"path": “https://panantstorage.blob.core.windows.net/sqldbledgerdigests/serverName/DatabaseName/2020-1-1 00:00:00Z”, “last_digest_block_id”:42, "is_current:true"} , ]
47+
[{"path": “https://mystorage.blob.core.windows.net/sqldbledgerdigests/serverName/DatabaseName/2020-1-1 00:00:00Z”, “last_digest_block_id”:42, "is_current:true"} , ]
4848
```
4949

5050
## Return code values
@@ -67,4 +67,4 @@ Requires the **VIEW LEDGER CONTENT** permission.
6767
- [sys.ledger_column_history (Transact-SQL)](../system-catalog-views/sys-ledger-column-history-transact-sql.md)
6868
- [sys.database_ledger_digest_locations (Transact-SQL)](../system-catalog-views/sys-database-ledger-digest-locations-transact-sql.md)
6969
- [sys.sp_generate_database_ledger_digest (Transact-SQL)](sys-sp-generate-database-ledger-digest-transact-sql.md)
70-
- [sys.sp_verify_database_ledger (Transact-SQL)](sys-sp-verify-database-ledger-transact-sql.md)
70+
- [sys.sp_verify_database_ledger (Transact-SQL)](sys-sp-verify-database-ledger-transact-sql.md)

docs/t-sql/statements/create-database-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ The name of the database that is to be copied.
11871187

11881188
LEDGER = {ON | OFF}
11891189

1190-
When set to `ON`, it creates a ledger database, in which the integrity of all user data is protected. Only ledger tables can be created in a ledger database. The default of `OFF`. The value of the `LEDGER` option cannot be changed once the database is created.
1190+
When set to `ON`, it creates a ledger database, in which the integrity of all user data is protected. Only ledger tables can be created in a ledger database. The default is `OFF`. The value of the `LEDGER` option cannot be changed once the database is created.
11911191

11921192
## Remarks
11931193

@@ -1707,4 +1707,4 @@ CREATE DATABASE mytest
17071707
- [ALTER DATABASE - Analytics Platform System](../../t-sql/statements/alter-database-transact-sql.md?view=aps-pdw-2016-au7&preserve-view=true)
17081708
- [DROP DATABASE](../../t-sql/statements/drop-database-transact-sql.md)
17091709

1710-
::: moniker-end
1710+
::: moniker-end

docs/t-sql/statements/drop-table-transact-sql.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ DROP TABLE { database_name.schema_name.table_name | schema_name.table_name | tab
100100
## Permissions
101101
Requires ALTER permission on the schema to which the table belongs, CONTROL permission on the table, or membership in the **db_ddladmin** fixed database role.
102102

103-
If the statement renames a ledger table, `ALTER LEDGER` permission is required.
103+
If the statement drops a ledger table, `ALTER LEDGER` permission is required.
104+
104105

105106
## Examples
106107

@@ -161,4 +162,4 @@ DROP TABLE IF EXISTS T1;
161162
[DROP VIEW &#40;Transact-SQL&#41;](../../t-sql/statements/drop-view-transact-sql.md)
162163
[DROP PROCEDURE &#40;Transact-SQL&#41;](../../t-sql/statements/drop-procedure-transact-sql.md)
163164
[EVENTDATA &#40;Transact-SQL&#41;](../../t-sql/functions/eventdata-transact-sql.md)
164-
[sys.sql_expression_dependencies &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-sql-expression-dependencies-transact-sql.md)
165+
[sys.sql_expression_dependencies &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-sql-expression-dependencies-transact-sql.md)

0 commit comments

Comments
 (0)