Skip to content
Advertisement

PROCEDURE Return always 0 for string statement

I have a procedure that can be changed dynamically by user for multi column and I write it in SQL when I run it. Everything is OK in SQL and Server Explorer in Visual Studio but when I want use it in C# and call it, it just return 0 always. Can anybody help me?!

Advertisement

Answer

In LINQ you cannot call an SP that have a meta output that is dynamic, you have to write your SP with “select” output and make a model and then go to SP and edit it again.

then import SP in your LINQ then comment “select” and uncomment “exec” .

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement