asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -


I have a VB Net has a web service function that will send criteria to an SQL server stored function.

Everything works perfectly for two months in the deployment machine.

but now error

The process or function GetEmployeeDetails is expected to have a parameter @progress which was not supplied 'P>

posted on the machine Just came once.

Everything works fine before and after the error.

Web service code:

  public function GetLocation (ByVal as the oldNumber integer, ByVal integer as NewNumber, ByVal as the location string, Byval progress form In the form of a string, byVal name as string, byVal ID as string, try the string as Command1 = New SqlCommand ("GetEmployeeDetails" Connection1) with Command1. CommonType = CommandType Stored Surechers Parameter.ed ("@ old number", SQLDB type.int). Value = old number. Parameter.ed ("New Numer", SQLDB type.ins). Value = Newamer. Parameter. Add ("@Space", SQLBT Ype.VarChar, 10). Value = location Parameter. Add ("@progress", SqlDbType.Char, 10) .Value = IIf (progress = "", System.DBNull.Value, progress). Parameter. Add ("@Name", SqlDbType.VarChar, 50) .Value = Name Parameter. Add ("@ ID", SqlDbType.VarChar, 50) .Value = ID Connection Open () .ExecuteNonQuery (). Connection Close ()   

Archived Process Parameters:

  Optional Process GetEmployeeDetails (@oldNumber AS INTEGER, @ INTEGER as new number, @ location form In VARCHAR (10), @   

I just want to know why error occurs when all the parameters are passed? Right?

< Div class = "post-text" itemprop = "text">

Since you are declaring the parameter in the form of CRL (1) in SQL but characters (10) in Vb.net

Try it

  Optional Process GetEmployeeDetails (@oldNumber AS INTEGER, @ INTEGER as new number, VARCHAR (10), @ Progress AS CHAR (10), @ NAS Vaiteer (50), IID AS VARCHAR (50)) as the location As    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -