C API: how to retrieve server name from a DBHANDLE?

Hello )

I have found nowhere how to accomplish that simple thing: return the parent server name of a database of which you have the DBHANDLE

the NSFDbInfoGet INFOPARSE_XXX options do not return that info…

what did I overlook?

thanks for your help

Subject: C API: how to retrieve server name from a DBHANDLE?

A database does not know what server it is on. The information is not in the NSF file. It would be strange if any NSFDb… function returns it. I think when you get the DBHANDLE, you must remember what server you specified.

Subject: Use NSFDbPathGet

Subject: RE: Use NSFDbPathGet

hey thanks, you are right!

NSDFbPathGet returns canonical_server_name!!relative_path in both string values!

the API Ref guide (as of v6.0) doesnt say a word about the server part of the return value…

thanks again )