PRB: Error When Query Builder Runs Parameterized Queries (258888)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q258888 SYMPTOMS
When you use Query Builder in the Data Environment of Visual Basic to run parameterized queries, you may receive the following error message:
Provider cannot derive parameter and SetParameterInfo has not been called.
This problem occurs when you use Microsoft Oracle OLE DB Provider.
CAUSE
Query Builder does not process the parameter information from the Command object's property page. To obtain the parameter information, Query Builder calls the DescribeParameters function of OLE DB Provider. This error is thrown because OLE DB Provider does not support this functionality. Query Builder does not run parameterized queries if the provider does not support DescribeParameters.
RESOLUTION
To work around this problem, use Query Builder to create parameterized queries, and set the parameter information on the Command object's property page.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
240205 PRB: ADO Parameters.Refresh Fails with MSDAORA Provider and Parameterized Query
Modification Type: | Major | Last Reviewed: | 8/23/2001 |
---|
Keywords: | kbDataEnv kbDSupport kbprb KB258888 |
---|
|