How to invoke SQL Function through SqlCommand class
C#
3
Posts
3
Posters
0
Views
1
Watching
-
Hi all! How i can to invoke SQL Function through SqlCommand class, what syntax i should use in CommandText and what value i should define in CommandType THANK
-
Hi all! How i can to invoke SQL Function through SqlCommand class, what syntax i should use in CommandText and what value i should define in CommandType THANK
-
Hi all! How i can to invoke SQL Function through SqlCommand class, what syntax i should use in CommandText and what value i should define in CommandType THANK
For scalar UDFs (which return a single value) use:
select dbo.MyUdfName()
For table-valued UDFs (that return a resultset) use:select * from dbo.MyUdfName()
Regards Andy