Results 1 to 3 of 3

Thread: Store Procedure total parameters

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    ENGLAND
    Posts
    38

    Store Procedure total parameters

    Dear All
    is there any limit in store procedure for the number of parameters
    you can pass.
    I am calling the store procedure in SQL 2000 from vb.net code
    which has got about 23 parameters.
    But is generate an error like this;
    e.Message "Too many arguments were supplied for procedure NewQuantTest." String

    Please can you advise me what is the problem, I cannot see it.
    Many Thanks for any reply
    salih
    sa

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If there is a limit it is more than 23, but it seems that you are passing too many parameters to the stored procedure. So if the procedure itself only has 10 and you are passing 11. Or possibly not passing them correctly.

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Yes, double check what your passing the stored proceedure, and what the stored proceedure expects. I had a stored proceedure that took in 18 values, and I kept getting it wrong because I was shorting it one value every time I was trying to call it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width