New to Telerik ReportingStart a free 30-day trial

Contains database query information including connection details and command configuration.

Definition

Namespace:Telerik.Reporting.Data.Schema

Assembly:Telerik.Reporting.Data.Schema.dll

Syntax:

C#
public class QueryInfo : ConnectionInfo

Inheritance: objectConnectionInfoQueryInfo

Derived Classes: PreviewDataInfo

Inherited Members ConnectionInfo.NameConnectionInfo.ProviderConnectionInfo.ConnectionString

Constructors

Initializes a new instance of the QueryInfo class.

C#
public QueryInfo()

Properties

Gets or sets the command timeout in seconds for query execution.

C#
public int CommandTimeout { get; set; }
Remarks:

Specifies how long to wait for the query to execute before timing out, with zero indicating no timeout.

Gets or sets the SQL command text or stored procedure name to execute.

C#
[Required]
public string SelectCommand { get; set; }
Remarks:

This property is required and contains the actual SQL statement or procedure name for data retrieval.

Gets or sets the type of SQL command to execute (text or stored procedure).

C#
public SqlDataSourceCommandType SelectCommandType { get; set; }
Remarks:

Determines whether the SelectCommand property contains SQL text or a stored procedure name.