How get environment variables without use xp_cmdshell ?

  • Hi,

    I need to write a trigger to write to a specific environment variable in a table. How can I do without using xp_cmdshell ?

    Thank

  • Hi

    You can write a SQLCLR. Why without xp_cmdshell?

    Greets

    Flo

  • Thank you for your response.

    I do not use xp_cmdshell to not affect the security of SQL.

    I will try SQLCLR.

  • Hi

    Just a little hint:

    Keeping xp_cmdshell disabled in server configuration is a little security fake. Only users of "sysadmin" group are allowed to execute xp_cmdshell and each "sysadmin" is able to enable to enable xp_cmdshell whenever (s)he intends. 😉

    Greets

    Flo

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply