April 21, 2010 at 12:36 am
I solved it. I was passing @CandID in the where cond. That was passing null.
Thanks.
April 21, 2010 at 3:56 am
April 22, 2010 at 4:08 am
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.
April 22, 2010 at 6:16 pm
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