Setting up a central CLR stored procedure / function respository library for internal stored procs in other databases to use?
-
30-10-2019 - |
Pergunta
I would like to use code that I developed in C# CLR to be used in all of the databases on the system so that I don't have to set each to trustworthy and turn CLR on and keep a bunch of the same code inside each one.
Is there a best way to do this from an administrative and security standpoint? The CLR functions are very basic like string breakers, email validation, url en/decode, base64, and etc. I would like only the dbo schema in each database to be able to access the functions.
- Is there any simple way to do this?
- Also I am not clear if the CLR dll is embedded and if I move the database, it tags along, or do I have to move the dll as well.
Thanks
Nenhuma solução correta
Licenciado em: CC-BY-SA com atribuição
Não afiliado a dba.stackexchange