To register a CLR assembly (with external access) for SQL, need to do the following
1. Set property of the Assembly to "external access" (by using Visual Studio)
1. Set property of the Assembly to "external access" (by using Visual Studio)
2. Set "TRUSTWORTHY" of the database to ON
Use DBase_Ctrl
ALTER DATABASE DBase_Ctrl SET TRUSTWORTHY ON
3. Issue command as below in SSMS to register the assembly:
Use DBase_Ctrl
CREATE ASSEMBLY SQL_Backup FROM
'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\SQL_Backup.dll'
WITH PERMISSION_SET = EXTERNAL_ACCESS
No comments:
Post a Comment