CREATE ASSEMBLY [Assembly_Name] AUTHORIZATION [dbo] FROM 'D:\xxx.dll' WITH PERMISSION_SET = EXTERNAL_ACCESS GO