hey all,
is it possible to call a sql server scalar function from c#?
>
Yes, but not directly. You'll have to use a statement of the form "SELECT
dbo.FunctionNam e(@Param1, @Param2, ...)" and you can use .ExecuteScalar( ) on
the command object. Be careful with the results: if it's NULL, you'll get
DBNull.Value, otherwise an object of the most appropriate type.
Comment