我正在开发基于 SQL Server 数据库的第三方软件。注意到他们在 ASSEMBLIES 文件夹下有用户定义/开发的程序集。
默认为Microsoft.SqlServer.Types
SQL Server 程序集的用途是什么?我们如何阅读它?可以将程序集调用为SELECT * FROM ASSEMBLYNAME
(类似的东西)。
最佳答案
程序集(和CREATE ASSEMBLY
)用于
Creates a managed application module that contains class metadata and managed code as an object in an instance of SQL Server. By referencing this module, common language runtime (CLR) functions, stored procedures, triggers, user-defined aggregates, and user-defined types can be created in the database.
CREATE ASSEMBLY uploads an assembly that was previously compiled as a .dll file from managed code for use inside an instance of SQL Server.
程序集是 .NET dll,然后将其导入 SQL Server,您可以在 SQL 语法中使用它们。
如果您的程序集包含函数,则可以在 SELECT
子句中使用它。例如,该程序集可用于访问文件结构或执行 SQL Server 中通常不可用的其他操作。
您可以通过MSDN了解更多信息.
关于sql-server - SQL Server 中 ASSEMBLIES 的用途是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23070393/