PRB: Passing Timestamp Parameter Using User Connection Designer (176561)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q176561 SYMPTOMS
When executing a query defined from the User Connection Object with a
Timestamp data type as the input parameter of a Stored Procedure, the
following error occurs:
Run-time error '13'
Type mismatch
CAUSE
The User Connection Designer automatically recognizes the parameters of
Stored Procedures by name, direction, ODBC binding data type, and Visual
Basic's data type. However, the Designer thinks the Timestamp parameter is
a Byte data type in Visual Basic, which is incorrect. In SQL Server,
Timestamp is binary array; there is no corresponding counterpart in Visual
Basic.
RESOLUTION
In User Connection Designer, go to the Parameters tab of Query object
properties page and change the Visual Basic Data Type of Timestamp input
parameter from Byte to Variant.
REFERENCES
For additional information about User Connection Designer and TimeStamp
datatype, please see the following articles in the Microsoft Knowledge
Base:
166281 HOWTO: Create and Implement a UserConnection
170380 HOWTO: Display/Pass Timestamp Value from/to SQL Server
(c) Microsoft Corporation 1997, All Rights Reserved.
Contributions by Adrian Chiang, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 4/18/2003 |
---|
Keywords: | kberrmsg kbprb KB176561 |
---|
|