Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. procedure or function "procedure name" has too many argument specified

procedure or function "procedure name" has too many argument specified

Scheduled Pinned Locked Moved Windows Forms
databasedebugginghelpquestionannouncement
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    isiran
    wrote on last edited by
    #1

    I have a winApplication which has a form. In that form I have a sql data adapter which contains 4 command for select,update,delete,insert. When I execute insert command, with passing 9 parameters values, by use of executenonguery function I receive "procedure or function "procedure name" has too many argument specified" error massage at line of executing.:( What should I do? I don't know what's happend there cause I check every parameters by breakpoint and saw that every parameters were passed! :confused:

    C R 2 Replies Last reply
    0
    • I isiran

      I have a winApplication which has a form. In that form I have a sql data adapter which contains 4 command for select,update,delete,insert. When I execute insert command, with passing 9 parameters values, by use of executenonguery function I receive "procedure or function "procedure name" has too many argument specified" error massage at line of executing.:( What should I do? I don't know what's happend there cause I check every parameters by breakpoint and saw that every parameters were passed! :confused:

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      You have asked this question already[^] I have given you suggestions already, including to post the code so we can see it.

      isiran wrote:

      What should I do? I don't know what's happend there cause I check every parameters by breakpoint and saw that every parameters were passed!

      And I've told you already that it is obvious that every paramter is passed because the error message tells you that "too many" parameters have been passed. This suggests that you are passing more parameters than was expected. You have to help us to help you. We can't guess what is in your code. You have to show us.


      Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... "I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless." My website

      V 1 Reply Last reply
      0
      • C Colin Angus Mackay

        You have asked this question already[^] I have given you suggestions already, including to post the code so we can see it.

        isiran wrote:

        What should I do? I don't know what's happend there cause I check every parameters by breakpoint and saw that every parameters were passed!

        And I've told you already that it is obvious that every paramter is passed because the error message tells you that "too many" parameters have been passed. This suggests that you are passing more parameters than was expected. You have to help us to help you. We can't guess what is in your code. You have to show us.


        Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... "I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless." My website

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Colin Angus Mackay wrote:

        This suggests that you are passing more parameters than was expected.

        Attempting to bribe the SQL Server? ;P

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        1 Reply Last reply
        0
        • I isiran

          I have a winApplication which has a form. In that form I have a sql data adapter which contains 4 command for select,update,delete,insert. When I execute insert command, with passing 9 parameters values, by use of executenonguery function I receive "procedure or function "procedure name" has too many argument specified" error massage at line of executing.:( What should I do? I don't know what's happend there cause I check every parameters by breakpoint and saw that every parameters were passed! :confused:

          R Offline
          R Offline
          Rocky
          wrote on last edited by
          #4

          the problem is simple, youre passing more arguments then ur supposed to so double chk on the number of parameters ur passing. and post the code when u have such problems

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups