How can we call UDF(User Define Function) using C# code in
ASP.net ?

Answer Posted / reventh

yes you can call a function.
sqlcommand cmd=new sqlcommand("select function
(parametter)");
sqldatareader rdr=cmd.excutereader();
while(rdr.read()
{
do something here;

}

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is use of except clause? How it differs from not in clause?

509


How to find the version of sql server? : sql server database administration

623


What is user-defined scalar function?

553


What does truncate do?

531


What is the maximum size of a row in sql server?

525






Tell me what is difference between clustered and non clustered index?

556


What is store procedure?

641


How can sql injection be stopped? : sql server security

546


What are four major operators that can be used to combine conditions on a where clause?

593


What is the default schema of your login session in ms sql server?

586


What does it mean to normalize a database and why would you do it?

528


What is constraints and its types?

497


Can an automatic recovery be initiated by a user?

556


What is meant by dirty read?

554


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

574