Class
QueryInfo

Contains database query information including connection details and command configuration.

Definition

Namespace:Telerik.Reporting.Data.Schema

Assembly:Telerik.Reporting.Data.Schema.dll

Syntax:

cs-api-definition
public class QueryInfo : ConnectionInfo

Inheritance: objectConnectionInfoQueryInfo

Derived Classes: PreviewDataInfo

Inherited Members ConnectionInfo.NameConnectionInfo.ProviderConnectionInfo.ConnectionString

Constructors

QueryInfo()

Initializes a new instance of the QueryInfo class.

Declaration

cs-api-definition
public QueryInfo()

Properties

CommandTimeout

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

Declaration

cs-api-definition
public int CommandTimeout { get; set; }

Property Value

int

Remarks

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

SelectCommand

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

Declaration

cs-api-definition
[Required]
public string SelectCommand { get; set; }

Property Value

string

Remarks

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

SelectCommandType

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

Declaration

cs-api-definition
public SqlDataSourceCommandType SelectCommandType { get; set; }

Property Value

SqlDataSourceCommandType

Remarks

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