PRB: ODBC Error When You Pass Date Parameters to SQL Stored Procedure (174638)
The information in this article applies to:
- Microsoft Visual InterDev 1.0
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Active Server Pages
This article was previously published under Q174638 SYMPTOMS
One of the following errors occurs when passing a date to a SQL Stored
Procedure:
Microsoft OLE DB Provider for ODBC Drivers error 80004005
At least one parameter contained a type that was not supported.
Microsoft OLE DB Provider for ODBC Drivers error 80040e21
Driver not capable.
CAUSE
The data type of the parameter being passed to the stored procedure does
not match the data type the stored procedure is expecting. For example,
passing a value of "7/21/97" to a stored procedure that is expecting
DateTime data will cause the error.
RESOLUTION
Make sure the data type you are passing to the stored procedure is of the
same type as the stored procedure is expecting. Using Visual InterDev's
Data Command control to create the Active Server Pages (ASP) code to call
your stored procedure will ensure the parameter is of the correct type.
STATUS
This behavior is by design.
REFERENCES
For the latest Knowledge Base articles and other support information on
Visual InterDev and Active Server Pages, see the following page on the
Microsoft Technical Support site:
Modification Type: | Major | Last Reviewed: | 5/2/2006 |
---|
Keywords: | kbprb kbStoredProc kbVisID600fix KB174638 |
---|
|