CDynamicParameterAccessor Class
Similar to CDynamicAccessor but obtains parameter information to be set by calling the ICommandWithParameters interface.
class CDynamicParameterAccessor : public CDynamicAccessor
Members
Methods
The constructor. |
|
Retrieves the parameter data from the buffer. |
|
Retrieves the number of parameters in the accessor. |
|
Determines whether the specified parameter is an input or output parameter. |
|
Retrieves the length of the specified parameter stored in the buffer. |
|
Retrieves the name of a specified parameter. |
|
Retrieves the status of the specified parameter stored in the buffer. |
|
Retrieves the string data of the specified parameter stored in the buffer. |
|
Retrieves the data type of a specified parameter. |
|
Sets the buffer using the parameter data. |
|
Sets the length of the specified parameter stored in the buffer. |
|
Sets the status of the specified parameter stored in the buffer. |
|
Sets the string data of the specified parameter stored in the buffer. |
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