Thor Logo dbatools

Assembly

Copy-DbaDbAssembly

Chrissy LeMaire (@cl), netnerds.net

Copy-DbaDbAssembly View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Copies CLR assemblies from source databases to destination SQL Server instances Description Migrates custom CLR assemblies from databases on a source SQL Server to corresponding databases on destination instances. This function scans all accessible databases for user-created assemblies and recreates them on the target servers, automatically handling security requirements like setting the TRUSTWORTHY property for external assemblies. Designed for database migration scenarios where applications rely on custom .

Read more

Get-DbaDbAssembly

Garry Bargsley (@gbargsley), blog.garrybargsley.com

Get-DbaDbAssembly View Source Garry Bargsley (@gbargsley), blog.garrybargsley.com Windows, Linux, macOS Synopsis Retrieves CLR assemblies registered in SQL Server databases for security auditing and inventory management. Description Retrieves detailed information about Common Language Runtime (CLR) assemblies that have been registered in SQL Server databases. This function helps DBAs audit custom .NET assemblies for security compliance, track assembly versions, and identify potentially unsafe or unauthorized code deployed to their SQL Server instances.

Read more