Advantage Database Server

sp_mgGetServerType

Advantage SQL Engine

sp_mgGetServerType

Advantage SQL Engine

Previous topic Next topic  

sp_mgGetServerType

Advantage SQL Engine

Previous topic Next topic  

Returns the type of server the connection is to.

Syntax

EXECUTE PROCEDURE sp_mgGetServerType()

Parameters

ServerType (O)

Type of server

ServerTypeValue (O)

Numeric value representing server type. This is the same value as is returned by AdsMgGetServerType.

OSMajor (O)

Major version of the server's operation system, if available.

OSMinor (O)

Minor version of the server's operating system, if available.

Remarks

Possible return values for ServerType include the following. The corresponding numeric ServerTypeValue is included in parentheses.

NetWare 4 or earlier (1)

Windows Server (2)

Local Server (3)

Windows 9x (4)

NetWare 5 or greater (5)

Linux (6)

Windows 64-bit (7)

Linux 64-bit (8)

 

Example

EXECUTE PROCEDURE sp_mgGetServerType();

See Also

sp_mgGetInstallInfo