Quick update, I went through line by line, seeing the "function evaluation requires all threads to run".
Trying to execute a stored procedure using Entity Framework in C#. I have been successful in doing this for a SELECT
statement inside a stored procedure, but not so much with an UPDATE
.
I have verified the following:
- The stored procedure works in SQL Server with the values I am feeding it manually
- The stored procedure expects
bigint
as parameters, and thus the input is sent as INT64.
The method I assume the EF built around the stored procedure, gets through all parts except its return statement, where I get a rather general invalidexception error.
Any thoughts on this? I can provide a bit of the stored procedure and the line on the method:
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("SP_HERE", int64, int64, int64, int64);
}
Here is the stored procedure:
CREATE PROCEDURE some_SP
@var1 bigint,
@var2 bigint,
@var3 bigint,
@var4 bigint
AS
BEGIN
--SET NOCOUNT ON;
Then various update statements, this I pasted was the original create.
Any tips off the top of your heads would be helpful. Not sure what is causing this, and digging into the exception doesn't seem to yield anything helpful.
Thanks guys!