SqlSystem.loginServer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the name of the database server currently connected to.
public:
virtual System::String ^ loginServer();
public virtual string loginServer();
abstract member loginServer : unit -> string
override this.loginServer : unit -> string
Public Overridable Function loginServer () As String
Returns
The name of the database currently connected to.
Remarks
An empty string is returned if the database does not support a server concept.
The following example demonstrates the loginServer method.
{
SqlSystem SqlSystem = new SqlSystem();
print SqlSystem.loginServer();
}