Link to home
Start Free TrialLog in
Avatar of Ilianam
Ilianam

asked on

What I'm doing wrong

I Know it's stupid but please take a look

in vb.net

With myCommand2
                        .Parameters.Add("@Examiner", SqlDbType.NVarChar)
                        .Parameters("@Examiner").Value = examiner2
                        .executeNonquery()

                    End With

and my sp

ALTER        procedure  spMDDeleteExaminer
@Examiner  integer
as

UPDATE [CorpDataTest].[dbo].[MDClaimsExaminers]
SET  [sActiveInactiveInd]='I'
WHERE lUserId=@Examiner


return

When I execute it, vb.net says that there is an error in my sp

SOS....I cann't see it
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Hello Ilianam,

it would certainly help to see the error message
but you say that SqlDbType is a varchar and the sp is expecting a integer, but not sure if thats the problem

hope this helps a bit
bruintje
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial