A newer version of this page is available. Switch to the current version.

SqlWizardSettings.DatabaseCredentialsSavingBehavior Property

Specifies whether or not to serialize database credentials along with document layouts (e.g., report or dashboards). Optionally, you can enable your end-users to select the required behavior.

Namespace: DevExpress.DataAccess.UI.Wizard

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

[DefaultValue(SensitiveInfoSavingBehavior.Never)]
public SensitiveInfoSavingBehavior DatabaseCredentialsSavingBehavior { get; set; }
<DefaultValue(SensitiveInfoSavingBehavior.Never)>
Public Property DatabaseCredentialsSavingBehavior As SensitiveInfoSavingBehavior

Property Value

Type Default Description
SensitiveInfoSavingBehavior

Never

A SensitiveInfoSavingBehavior enumeration value.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to DatabaseCredentialsSavingBehavior
Cross-Platform Class Library DataSourceWizardSettings
.SqlWizardSettings.DatabaseCredentialsSavingBehavior
WinForms Controls DataSourceWizardOptions
.SqlWizardSettings.DatabaseCredentialsSavingBehavior
SnapControl
.Options.DataSourceWizardOptions.SqlWizardSettings.DatabaseCredentialsSavingBehavior
SnapControlOptions
.DataSourceWizardOptions.SqlWizardSettings.DatabaseCredentialsSavingBehavior
WPF Controls ReportDesigner
.DataSourceWizardSettings.SqlWizardSettings.DatabaseCredentialsSavingBehavior
ReportDesignerBase
.DataSourceWizardSettings.SqlWizardSettings.DatabaseCredentialsSavingBehavior
Reporting XRDesignMdiController
.SqlWizardSettings.DatabaseCredentialsSavingBehavior
Dashboard DashboardDesigner
.DataSourceWizardSettings.DatabaseCredentialsSavingBehavior
DashboardDesignerDataSourceWizardSettings
.SqlWizardSettings.DatabaseCredentialsSavingBehavior

Remarks

To always serialize only database connection names, set the DataConnectionBase.StoreConnectionNameOnly property to true. This will guarantee that the database credentials are never exposed in report layout definitions.

When this property is set to false (the default value), the resulting behavior depends on the settings defined for the SqlWizardSettings.DatabaseCredentialsSavingBehavior and IConnectionStorageService.CanSaveConnection properties.

SensitiveInfoSavingBehavior

Behavior

SensitiveInfoSavingBehavior.Prompt

SensitiveInfoSavingBehavior.Always or SensitiveInfoSavingBehavior.Never

End-users cannot specify whether or not the database credentials will be stored along with serialized layouts, which depends on the specified DatabaseCredentialsSavingBehavior setting. After an existing connection is selected (or a new one is specified), the Data Source wizard displays the following page.

See Also