Hope you guys can help me.
This is my situation.
I have a stored procedure that returns a very dynamic #table
(the number of columns are not fixed)
It accepts 4 parameters.
ALTER PROCEDURE cct_AbsHoursPossible
@_TpCode VarChar(9),
@_Period VarChar(20),
@_StartDate DateTime,
@_EndDate DateTime
AS
SET NOCOUNT ON
SET FMTONLY OFF
I include the stored procedure in my model, and I added the function import and created the complex type.
BUT when I call the stored procedure with the following code
ctx.cct_AbsHoursPossible("V109 03", "A%", _start, _end);
It gives me the following error.
*Procedure or function 'cct_AbsHoursPossible' expects parameter '@_TpCode', which was not supplied.*
I have searched the web and could not come up with any solutions.
I am pretty new to .net development..
Please any help will be appreciated.