Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2f61e7

Browse files
committed
Edit pass (PR 9924)
1 parent 7e4eb34 commit d2f61e7

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed
Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
title: "sys.trusted_assemblies (Transact-SQL)"
3-
description: sys.trusted_assemblies (Transact-SQL)
3+
description: sys.trusted_assemblies contains a row for each trusted assembly for the server.
44
author: VanMSFT
55
ms.author: vanto
6-
ms.date: "06/14/2017"
6+
ms.reviewer: randolphwest
7+
ms.date: 11/05/2024
78
ms.service: sql
89
ms.subservice: system-objects
910
ms.topic: "reference"
@@ -16,35 +17,37 @@ helpviewer_keywords:
1617
- "sys.trusted_assemblies"
1718
dev_langs:
1819
- "TSQL"
19-
monikerRange: ">=sql-server-2017||>=sql-server-linux-2017||=azuresqldb-mi-current"
20+
monikerRange: ">=sql-server-2017 || >=sql-server-linux-2017 || =azuresqldb-mi-current"
2021
---
21-
# sys.trusted_assemblies (Transact-SQL)
22-
[!INCLUDE[SQL Server SQL MI](../../includes/applies-to-version/sql-asdbmi.md)]
22+
# sys.trusted_assemblies (Transact-SQL)
23+
24+
[!INCLUDE [SQL Server SQL MI](../../includes/applies-to-version/sql-asdbmi.md)]
2325

2426
Contains a row for each trusted assembly for the server.
2527

26-
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
28+
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
29+
30+
| Column name | Data type | Description |
31+
| --- | --- | --- |
32+
| `hash` | **varbinary(8000)** | SHA2_512 hash of the assembly content. |
33+
| `description` | **nvarchar(4000)** | Optional user-defined description of the assembly. We recommend using the canonical name that encodes the simple name, version number, culture, public key, and architecture of the assembly to trust. This value uniquely identifies the assembly on the common language runtime (CLR) side and is the same as the `clr_name` value in `sys.assemblies.` |
34+
| `create_date` | **datetime2(7)** | Date the assembly was added to the list of trusted assemblies. |
35+
| `created_by` | **nvarchar(128)** | Login name of the principal who added the assembly to the list. |
36+
37+
### Permissions
2738

39+
[!INCLUDE [sssql19-md](../../includes/sssql19-md.md)] and previous versions require `VIEW SERVER STATE` permission on the server.
2840

29-
|Column name |Data type |Description |
30-
|--- |--- |--- |
31-
|hash |varbinary(8000) |SHA2_512 hash of the assembly content. |
32-
|description |nvarchar(4000) |Optional user-defined description of the assembly. Microsoft recommends using the canonical name that encodes the simple name, version number, culture, public key, and architecture of the assembly to trust. This value uniquely identifies the assembly on the common language runtime (CLR) side and is the same as the clr_name value in sys.assemblies. |
33-
|create_date |datetime2 |Date the assembly was added to the list of trusted assemblies. |
34-
|created_by |nvarchar(128) |Login name of the principal who added the assembly to the list. |
41+
[!INCLUDE [sssql22-md](../../includes/sssql22-md.md)] and later versions require `VIEW SERVER SECURITY STATE` permission on the server.
3542

36-
### Permissions
43+
## Remarks
3744

38-
In [!INCLUDE [sssql19-md](../../includes/sssql19-md.md)] and previous versions, requires `VIEW SERVER STATE` permission on the server.
45+
Use [sys.sp_add_trusted_assembly](../system-stored-procedures/sys-sp-add-trusted-assembly-transact-sql.md) to add, and [sys.sp_drop_trusted_assembly](../system-stored-procedures/sys-sp-drop-trusted-assembly-transact-sql.md) to remove assemblies from `sys.trusted_assemblies`.
3946

40-
In [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)] and later versions, requires `VIEW SERVER SECURITY STATE` permission on the server.
41-
42-
## Remarks
43-
Use **[sys.sp_add_trusted_assembly](../../relational-databases/system-stored-procedures/sys-sp-add-trusted-assembly-transact-sql.md)** to add and **[sys.sp_drop_trusted_assembly](../../relational-databases/system-stored-procedures/sys-sp-drop-trusted-assembly-transact-sql.md)** to remove assemblies from `sys.trusted_assemblies`.
47+
## Related content
4448

45-
## See Also
46-
[sys.sp_add_trusted_assembly](../../relational-databases/system-stored-procedures/sys-sp-add-trusted-assembly-transact-sql.md)
47-
[sys.sp_drop_trusted_assembly](../../relational-databases/system-stored-procedures/sys-sp-drop-trusted-assembly-transact-sql.md)
48-
[DROP ASSEMBLY (Transact-SQL)](../../t-sql/statements/drop-assembly-transact-sql.md)
49-
[sys.assemblies](../../relational-databases/system-catalog-views/sys-assemblies-transact-sql.md)
50-
[sys.dm_clr_loaded_assemblies](../../relational-databases/system-dynamic-management-views/sys-dm-clr-loaded-assemblies-transact-sql.md)
49+
- [sys.sp_add_trusted_assembly](../system-stored-procedures/sys-sp-add-trusted-assembly-transact-sql.md)
50+
- [sys.sp_drop_trusted_assembly](../system-stored-procedures/sys-sp-drop-trusted-assembly-transact-sql.md)
51+
- [DROP ASSEMBLY (Transact-SQL)](../../t-sql/statements/drop-assembly-transact-sql.md)
52+
- [sys.assemblies](sys-assemblies-transact-sql.md)
53+
- [sys.dm_clr_loaded_assemblies](../system-dynamic-management-views/sys-dm-clr-loaded-assemblies-transact-sql.md)

0 commit comments

Comments
 (0)