## ExternalConnection::SetSecondCommand(const U16String\&) method


Specifies a second command text string that is persisted when PivotTable server-based page fields are in use. For ODBC connections, serverCommand is usually a broader query than command (no WHERE clause is present in the former). Based on these 2 commands(Command and ServerCommand), parameter UI can be populated and parameterized queries can be constructed.

```cpp
void Aspose::Cells::ExternalConnections::ExternalConnection::SetSecondCommand(const U16String &value)
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [ExternalConnection](../)
* Namespace [Aspose::Cells::ExternalConnections](../../)
* Library [Aspose.Cells for C++](../../../)
## ExternalConnection::SetSecondCommand(const char16_t*) method


Specifies a second command text string that is persisted when PivotTable server-based page fields are in use. For ODBC connections, serverCommand is usually a broader query than command (no WHERE clause is present in the former). Based on these 2 commands(Command and ServerCommand), parameter UI can be populated and parameterized queries can be constructed.

```cpp
void Aspose::Cells::ExternalConnections::ExternalConnection::SetSecondCommand(const char16_t *value)
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [ExternalConnection](../)
* Namespace [Aspose::Cells::ExternalConnections](../../)
* Library [Aspose.Cells for C++](../../../)
