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: 1565

Filed under:
|
|

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

Related posts about enterprise-library

Related posts about sql