i have read some where that significant difference between them is that UDFs can't change the server environment or your operating system environment, while a SPROC can

so my question is that how sp can change server environment or your operating system environment .

I would be grateful to any one if descibe by any example hwo this happens