Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6894751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:49:19+00:00 2026-05-27T06:49:19+00:00

I am calling one stored procedure using the following code: m_objCmd.CommandText = StoredProc_Name m_objCmd.Parameters.Append

  • 0

I am calling 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 above:

  • @UserID is a ‘int’ dataType
  • @UserTypeID is ‘int’
  • @AccessToken is nVarchar(100)
  • @TokenExpiration is datatime(2)
  • @RefreshToken is nVarchar(100)

But here I am getting the error:

Application uses a value of the wrong type for the current operation.

Can any one help me please.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:49:20+00:00Added an answer on May 27, 2026 at 6:49 am

    I had this same problem just a few days ago. My problem was overflow as Kul-Tigin suggests below.

    I was trying to insert a huge string 17,000+ characters in length and I received exactly the same error as you. I then opted to save the string in a text file and I used the table as a file locator so-to-speak.

    Check the length of the values in the following:

    • @UserID is a ‘int’ dataType
    • @UserTypeID is ‘int’
    • @AccessToken is nVarchar(100)
    • @TokenExpiration is datatime(2)
    • @RefreshToken is nVarchar(100)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm calling a stored procedure from C# .net and one of the string parameters
I have a stored procedure that I am calling using EXECUTE IMMEDIATE. The issue
I'm calling a stored procedure which does some updates/inserts/deletes (any one of these at
Using ODP.net, I am calling several stored procedures on 10g. One of the procedures
I'm using entity framework 4. I have a stored procedure that just updates one
I'm using iBATIS to call a Stored Procedure on MSSQL Server, the input parameters
I have a situation where one SQL Server stored procedure is calling another one
Hey all this is the first time i am calling a stored procedure via
A simple question about Stored Procedures. I have one stored procedure collecting a whole
I have multiple tables . I have created one stored procedure where I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.