BSTR GetServerType(BSTR bstrServerName)
Description
This function returns a string identifying the type and version of the specified server. If the application has not yet connected to this server, an empty string is returned.
Parameters
Name | Description |
---|---|
bstrServerName | The name of the server for which the type and version should be returned. This name must match one of the names defined in the current SDF. Use the GetServerList() or GetServerListEx()) functions to retrieve a list of valid server names. |
|
|
Return Value
If the application has not yet connected to this server, an empty string is returned. If the server is an ODBC server, the string "ODBC" is returned. For all other servers, an eight character string is returned. The string is of the form "PPPVVRRM", where "PPP" identifies the type of server ("DSN" for DB2 for z/OS, "ARI" for DB2 for VM & VSE, "QSQ" for DB2 for iSeries, or "SQL" for DB2 for workstation platforms) and "VVRRM" identifies the version, release and modification level of the server.
Related Tasks