Dynamics NAV: Get SQL Server Name for current installation

I recently wrote a little blog on how to determine, if the current installation is a multitenant installation. There are a few more useful things that you can do with the DLLS that are shipped with Dynamics NAV.