You are here: Core Reference > Coding > Scripting > ServerQuery.ColumnCount

ServerQuery.ColumnCount

The ServerQuery.ColumnCount property returns the total number of columns in the Query that is returned by the Server.Query property.

Syntax

ServerQuery.ColumnCount

Description

Returns the total number of columns in the SQL Query that is returned by the Server.Query property (see Server.Query)

The ColumnCount property is useful when the number of columns returned by the query is unknown.

Arguments

None.

Returns

Count {integer}.

The count is the total number of columns in the Query that is returned by the Server.Query property.

For an example that shows how the ServerQuery.ColumnCount property can be used, please refer to Server.Query.


ClearSCADA 2015 R2