Partager via


CDynamicParameterAccessor Class

Similar to CDynamicAccessor but obtains parameter information to be set by calling the ICommandWithParameters interface.

class CDynamicParameterAccessor : public CDynamicAccessor

Remarks

The provider must support ICommandWithParameters for the consumer to use this class.

The parameter information is stored in a buffer created and managed by this class. Obtain parameter data from the buffer by using GetParam and GetParamType.

For an example demonstrating how to use this class to execute a SQL Server stored procedure and get the output parameter values, see Knowledge Base article Q058860, "HOWTO: Execute Stored Procedure using CDynamicParameterAccessor." Knowledge Base articles are available in the MSDN Library Visual Studio documentation or at https://support.microsoft.com/support/.

Requirements

Header: atldbcli.h

See Also

Reference

CAccessor Class

CDynamicAccessor Class

CManualAccessor Class

Concepts

OLE DB Consumer Templates (C++)

OLE DB Consumer Templates Reference

Other Resources

CDynamicParameterAccessor Members