Hi,
In .Net, using the managed provider (https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GBMP) the connection object has the property ServerZV, that returns the $ZV:
static void Main(string[] args)
{
InterSystems.Data.CacheClient.CacheConnection cacheConn = new InterSystems.Data.CacheClient.CacheConnection();
cacheConn.ConnectionString = "Server=localhost;Port=1972; Namespace=USER; Password=xxxx; User ID=xxxx";
cacheConn.Open();
Console.WriteLine(cacheConn.ServerZV);
Console.ReadLine();
cacheConn.Close();
cacheConn.Dispose();
}
The direct access to globals from .net is quite interesting but, as of right now, it has a major drawback: the Connect() method only allows the access to the cache database that is on the same machine.
If the server has at the same time the application and the database is fine. But otherwise, as usually the application server is different as the database server, you cannot use it.
We have checked the documentation and we haven’t found a way to connect to a database in another server using Caché eXTreme. There is any way to do it?



Hi Yeung,
Even is not an entire "dark-mode", in this page you can find a few dark themes for Intersystems Cache Studio, at least for the code:
https://github.com/doublefint/CacheColorTheme
Anyways, I would also recommend to switch to VSCode.