I call one stored procedure using the following code:
m_objCmd.CommandText = "StoredProc_Name" m_objCmd.Parameters.Append m_objCmd.CreateParameter("@UserID", 3, 1, 0, UserID) m_objCmd.Parameters.Append m_objCmd.CreateParameter("@UserTypeID", 3, 1, 0, UserTypeID) m_objCmd.Parameters.Append m_objCmd.CreateParameter("@AccessToken", 202, 1, 100, AccessToken) m_objCmd.Parameters.Append m_objCmd.CreateParameter("@TokenExpiration", 135, 1, 0, TokenExpiration) m_objCmd.Parameters.Append m_objCmd.CreateParameter("@RefreshToken", 202, 1, 100, RefreshToken) rsUserData.Open m_objCmd, , adOpenStatic, adLockReadOnly
In the above example:
@UserID is the data type 'int'@UserTypeID is 'int'@AccessToken - nVarchar (100)@TokenExpiration is the time (2)@RefreshToken - nVarchar (100)
But here I get the error message:
The application uses the wrong type value for the current operation.
Can someone help me.
source share