We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fabdbd commit 0eed8a7Copy full SHA for 0eed8a7
1 file changed
samples/features/sql-clr/Curl/SqlClrCurl.tt
@@ -24,14 +24,14 @@ SELECT @hash = hash
24
FROM sys.trusted_assemblies ta
25
WHERE ta.description = N'SqlClrCurl'
26
27
-EXEC sp_drop_trusted_assembly @hash;
+if (@hash is not null)
28
+ EXEC sp_drop_trusted_assembly @hash;
29
GO
30
31
--Drop the assembly if it already exists
32
DROP ASSEMBLY IF EXISTS SqlClrCurl;
33
34
-
35
DECLARE @assembly VARBINARY(MAX) = <#= "0x" + BitConverter.ToString(System.IO.File.ReadAllBytes(this.Host.ResolvePath("bin\\Release\\SqlClrCurl.dll"))).Replace("-","") #>
36
DECLARE @hash VARBINARY(64);
37
SELECT @hash = HASHBYTES('SHA2_512', @assembly)
0 commit comments