How to execute scalar function using Enterprise Library?
Posted
by Vadim
on Stack Overflow
See other posts from Stack Overflow
or by Vadim
Published on 2010-05-12T20:14:32Z
Indexed on
2010/05/12
20:44 UTC
Read the original article
Hit count: 1601
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.
© Stack Overflow or respective owner