How to execute scalar function using Enterprise Library?
- by Vadim
I'm having trouble to execute scalar function using Enterprise Library 5.0.
The code looks something like that:
somedDb.ExecuteScalar(CommandType.Text, "SELECT dbo.MyFunction('param')");
When the code is executed, I get the following error:
Cannot find either column "dbo" or the
user-defined function or aggregate
"dbo.MyFunction", or the name is
ambiguous.