How to add rights for this:
unsafe assembly permission was denied on object 'server' database 'master'
Check and confirm that the account you use to create the assembly is sysadmin for a specific SQL instance. You must be sysadmin to install unsafe builds for MSDN