Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 call function from stored procedure in sql server

Author  Topic 

karthik425
Starting Member

3 Posts

Posted - 2011-08-23 : 01:43:40
How to call a function from stored procedure in sql server..please show me an example

karthik

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2011-08-23 : 01:46:06
Depends on whether you want to call scalar or table-valued function. Scalar function can be called just like normal SQL server function:

select dbo.myfunc(col) from table

Table-valued function can be called as below:

select * from dbo.myTableValuedFunc() as temp

Harsh Athalye
http://www.letsgeek.net/
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-23 : 01:58:03
for table valued functions you can use them like a normal table in joins etc

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -