Skip to content
Advertisement

Calling Functions in SqlCommand

Can I use Sql Server functions in myCommand.CommandText and why?

Advertisement

Answer

If you mean, SQL Server user defined functions. Then, yes; you can use it normally like:

The reason it works is because this is the way that functions are called in SQL Server directly.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement