Syntax for creating a new assembly in SQL Server 2005

What is the syntax for creating a new assembly in SQL Server 2005?

CREATE ASSEMBLY assembly_name

[ AUTHORIZATION owner_name ]
FROM { <client_assembly_specifier> | <assembly_bits> [ ,...n ] }
[ WITH PERMISSION_SET = { SAFE | EXTERNAL_ACCESS | UNSAFE } ]
[ ; ]

What is the syntax for creating a new assembly in SQL Server 2005?

Assemblies can be created using CREATE ASSEMBLY command. It takes the path of the DLL as the parameter.

Example:
CREATE DIRECTORY Sample

FROM ‘\\sampleserver\CodeLib\Mysample.dll’
When the CREATE ASSEMBLY is executed, the DLL is copied to master database.
CLR Integration vs. Extended Stored Procedures
CLR Integration provides a more convenient and robust solution to Extended stored procedures for implementing server side logic.......
How to configure CLR for SQL Server?
CLR by default is not configured in SQL server. It needs to be explicit ally configured using sp_configure syntax. This is shown as below:........
How to create functions in SQL Server using .NET?
Functions in SQL server can be created using the .NET common language interface or CLR. The functions code is written and then complied into a .NET assembly to deploy on the SQL server.........
Post your comment