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

no we can not call as 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 ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between left join and inner join in sql server?

1039


How can we improve performance by using SQL Server profiler?

984


What are the different types of sql server replication? : sql server replication

1157


What are the basic functions for master, msdb, model, tempdb and resource databases?

937


How you can move data or databases between servers and databases in sql server?

1002


What are difference between Cluster index and Non-Cluster index?

1019


What are the essential components of sql server service broker?

964


what is the primary use of the model database? : Sql server administration

962


How can we rewrite sub-queries into simple select statements or with joins?

921


How to truncate the log in sql server 2012? : sql server database administration

1199


What is sql or structured query language?

1086


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1154


Explain the various types of concurrency problem. I.e. Lost or buried updates, uncommitted dependency, inconsistent analysis, phantom read?

884


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

968


What is a non-clustered index?

952