The first command to execute sets the SQL Server to allow for CLR instructions to be executed, and is as follows: sp_configure @configname=clr_enabled, @configvalue=1 If this command executes successfully, then you can go ahead and execute the two previously created commands, in the order listed above.