Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can store procedure call by user define function in SQL
server?

Answer Posted / samba shiva reddy . m

sorry the last post was not correct.

yes we can call stored procedure in User defined function.
1.Stored procedures are pree compiled and functions are not pree compiled it will execute at run time.
2.Functions cannot affect the state of the database which means we cannot perform insert,delete,update and create operations on the database.
Stored Procedures can affect the state of the database by using insert,delete,update and create operations.
3.Procedure can return zero or n values whereas function can return one value which is mandatory.
4.Procedures can have input,output parameters for it whereas functions can have only input parameters.
5.Functions can be called from procedures and in select statement and whereas procedures cannot be called from function or select statement.
6.A Function returns 1 value only. Procedure can return
multiple values (max 1024).
7. Stored procedure returns always integer value by default
zero. Whereas function returns type could be scalar or
table or table values.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum row of a size?

1012


What are the events recorded in a transaction log?

990


How do I start sql server 2017?

929


Explain the rules for designing files and file groups in sql server?

980


Is natural join and equi join same?

963


What is CTE in SQL

937


What is candidate key with example?

972


What is difference between sql and sql server?

989


Explain what is “asynchronous” communication in sql server service broker?

908


What is database replication? What are the different types of replication you can set up in sql server?

954


What is resource governor in sql server?

986


What is user-defined function? Explain its types i.e. Scalar and inline table value user-defined function?

895


How to delete an existing database user?

1013


How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?

1181


What is difference between clustered index and non clustered index?

1072