Skip to main content

SqlDataConnection.CreateConnectionString() Method

Generates a connection string out of the connection parameters assigned to the SqlDataConnection.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

public override string CreateConnectionString()

Returns

Type Description
String

A String value, specifying the connection string.

Remarks

Calling CreateConnectionString after the SqlDataConnection.BlackoutCredentials method call will exclude the user name and password from the resulting connection string.

When SqlDataConnection uses CustomStringConnectionParameters, the CreateConnectionString method will assign the resulting string to the SqlDataConnection.ConnectionString property.

See Also