SqlDataSource.ConnectionParameters Property
Specifies the data connection settings of the SqlDataSource.
Namespace: DevExpress.DataAccess.Sql
Assembly: DevExpress.DataAccess.v24.2.dll
NuGet Package: DevExpress.DataAccess
#Declaration
[DefaultValue(null)]
[LocalizableCategory(DataAccessStringId.PropertyGridConnectionCategoryName)]
public DataConnectionParametersBase ConnectionParameters { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Data |
null | A Data |
#Remarks
The ConnectionParameters property value is a DataConnectionParametersBase descendant. To establish a data connection, create an object of the type appropriate for the data source. For instance, MS SQL Server requires the MsSqlConnectionParameters type, Oracle DB uses the OracleConnectionParameters type, and an XML file utilizes the XmlFileConnectionParameters type.
When the ConnectionParameters property is specified, the SqlDataSource.ConfigureDataConnection event occurs each time the SqlDataSource connects to a database. Handle this event to change parameters required to establish a data connection (the server name, the database name, user credentials, the path to a data file, etc.).
Tip
In a Reporting application, the IConnection
Tip
For more information, review the following article: Sql
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ConnectionParameters property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.