Class SqlDataSource
Represents an SQL database to data items.
Inherited Members
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public class SqlDataSource : DataSource, INamedObject, ICloneable, IEquatableDataSource, ISimpleDataSource, IDataSource, IConnectionDataSource
Constructors
SqlDataSource()
SqlDataSource(String, String)
Initializes a new instance of the Sql
Declaration
public SqlDataSource(string connectionString, string selectCommand)
Parameters
System. Specifies the connection string used to connect to data. |
System. Specifies the SQL select statement or stored procedure to execute. |
SqlDataSource(String, String, String)
Initializes a new instance of the Sql
Declaration
public SqlDataSource(string providerName, string connectionString, string selectCommand)
Parameters
System. Specifies the managed provider name used to connect to data. |
System. Specifies the connection string used to connect to data. |
System. Specifies the SQL select statement or stored procedure to execute. |
SqlDataSource(String, String, String, String)
Initializes a new instance of the Sql
Declaration
public SqlDataSource(string providerName, string connectionString, string selectCommand, string schemaRestrictions)
Parameters
System. Specifies the managed provider name used to connect to data. |
System. Specifies the connection string used to connect to data. |
System. Specifies the SQL select statement or stored procedure to execute. |
System. Specifies the schema restrictions used by the query builder while resolving the database schema. |
SqlDataSource(String, String, String, SqlDataSourceCommandType, String)
Initializes a new instance of the Sql
Declaration
public SqlDataSource(string providerName, string connectionString, string selectCommand, SqlDataSourceCommandType selectCommandType, string schemaRestrictions)
Parameters
System. Specifies the managed provider name used to connect to data. |
System. Specifies the connection string used to connect to data. |
System. Specifies the SQL select statement or stored procedure to execute. |
Sql Specifies how the select command string to be interpreted. |
System. Specifies the schema restrictions used by the query builder while resolving the database schema. |
Properties
CommandTimeout
Gets or sets the wait time in seconds before terminating the attempt to retrieve data.
Declaration
public int CommandTimeout { get; set; }
Property Value
System. The time in seconds to wait before terminating the attempt to retrieve data. The default value of the CommandTimeout property is 30 seconds. |
Remarks
The provided value should be valid for the currently used data provider.
ConnectionString
Gets or sets the connection string used to connect to data.
Declaration
public string ConnectionString { get; set; }
Property Value
System.
|
Remarks
The ConnectionString property contains either a valid connection
string or the name of a System.
Parameters
Gets a collection with data source parameters.
Declaration
public SqlDataSourceParameterCollection Parameters { get; }
Property Value
ProviderName
Gets or sets the managed provider name used to connect to data.
Declaration
public string ProviderName { get; set; }
Property Value
System.
|
Remarks
If the ProviderName property is set to null (Nothing in Visual Basic) or an empty string, the default provider is System.Data.SqlClient.
SchemaRestrictions
Gets or sets the schema restrictions used by the query builder while resolving the database schema.
Declaration
public string SchemaRestrictions { get; set; }
Property Value
System.
|
Remarks
A comma-separated list of schema restrictions used to limit the amount of information returned. The position of each item in the list is equivalent to the restriction number.
SelectCommand
Gets or sets the SQL select statement or stored procedure to execute.
Declaration
public string SelectCommand { get; set; }
Property Value
System.
|
SelectCommandType
Gets or sets a value indicating how the select command to be interpreted.
Declaration
public SqlDataSourceCommandType SelectCommandType { get; set; }
Property Value
Remarks
One of the Sql