Function 'CONTEXTURL' is obsolete

In Nav 6.0 im getting “Function ‘CONTEXTURL’ is obsolete for Microsoft Dynamics NAV Server” when i attempt to compile a code unit used to generate connection strings. Is there any alternative appraoch I can use to get the ServerName and DatabaseName using C/AL?