TechNet
Export (0) Print
Expand All

IDbConnectionExtension Interface

 

Updated: February 25, 2016

Applies To: SQL Server 2016

Represents additional connection properties that can be implemented by SQL Server Reporting Services data processing extensions.

Namespace:   Microsoft.ReportingServices.DataProcessing
Assemblies:   Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

public interface IDbConnectionExtension : IDbConnection, IDisposable, 
	IExtension

NameDescription
System_CAPS_pubpropertyConnectionString

Gets or sets the string used to open a database.(Inherited from IDbConnection.)

System_CAPS_pubpropertyConnectionTimeout

Gets the time to wait, while trying to establish a connection, before terminating the attempt and generating an error.(Inherited from IDbConnection.)

System_CAPS_pubpropertyImpersonate

Sets the username of the user that is impersonated while queries are executed. This property is ignored by the report server if impersonation is not supported by the data provider.

System_CAPS_pubpropertyIntegratedSecurity

Indicates whether the connection should use integrated security rather than supply a username and password.

System_CAPS_pubpropertyLocalizedName

Gets the localized name of the extension to be displayed in a user interface.(Inherited from IExtension.)

System_CAPS_pubpropertyPassword

Gets or sets the password to use when connecting to the database. Overrides any password specified in the connection string.

System_CAPS_pubpropertyUserName

Gets or sets the username to use when connecting to the database. Overrides any username specified in the connection string.

NameDescription
System_CAPS_pubmethodBeginTransaction()

Begins a database transaction.(Inherited from IDbConnection.)

System_CAPS_pubmethodClose()

Closes the connection to the database.(Inherited from IDbConnection.)

System_CAPS_pubmethodCreateCommand()

Creates and returns a Command object associated with the connection.(Inherited from IDbConnection.)

System_CAPS_pubmethodDispose()

(Inherited from IDisposable.)

System_CAPS_pubmethodOpen()

Initializes a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.(Inherited from IDbConnection.)

System_CAPS_pubmethodSetConfiguration(String)

Used to pass custom configuration data to an extension.(Inherited from IExtension.)

The IDbConnectionExtension interface enables you to implement an extension of the IDbConnection interface, which adds additional functionality for authenticating a connection to a data source. The IDbConnectionExtension interface can be used to build a custom data processing extension. For more information about Connection classes, see Implementing a Connection Class for a Data Processing Extension.

An application does not create an instance of the IDbConnectionExtension interface directly, but creates an instance of a class that implements IDbConnectionExtension.

Classes that implement IDbConnectionExtension must also implement all required members, and typically define additional members to add provider-specific functionality. Because IDbConnectionExtension inherits from IDbConnection, you must also implement all of the IDbConnection members as part of your Connection class including those members from IExtension.

Return to top
Show:
© 2016 Microsoft