MagicCMS Documentation

InputParams_dt..::..BuildQuery Method (String, String)

Builds the query. It takes the original query and transforms it into a sub query from which extracts the first length records from start record.

Namespace:  MagicCMS.DataTable
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public string BuildQuery(
	string originalSelectCmd,
	string originalWhereClause
)

Parameters

originalSelectCmd
Type: String
The original select command.
originalWhereClause
Type: String
The original where clause.

Return Value

SQL Command String

Remarks


The original query must be a "SELECT TOP..." statement.