Procedure has too many arguments

  • I solved it. I was passing @CandID in the where cond. That was passing null.

    Thanks.

  • Glad.

    Enjoy.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • If you're getting the "1" printed, but not "uniqueno = "+@uniqueno then the error has to be one of these lines:

    SELECT @uniqueno = ResumePrefix+ResumeSuffix+ResumeLastNo FROM HC_SYSCONFIG

    UPDATE HC_SYSCONFIG SET ResumeLastNo = ResumeLastNo + 1

    We'll need to know the definitions of those fields.

    I'd guess that ResumePrefix, ResumeSuffix and ResumeLastNo are a mixture of numeric and varchar data, and some data in there's causing an implicit conversion to fail.

  • This looks problematic:

    DECLARE @ResumePrefix VARCHAR(50)

    DECLARE @ResumeSuffix VARCHAR(50)

    DECLARE @ResumeLastNo BIGINT

    DECLARE @uniqueno varchar(50)

    SELECT @uniqueno = ResumePrefix+ResumeSuffix+ResumeLastNo

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

Viewing 4 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic. Login to reply