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
 General SQL Server Forums
 New to SQL Server Programming
 STORE PROC AND UDF

Author  Topic 

tapaswani86
Starting Member

26 Posts

Posted - 2011-01-11 : 11:49:57
Hi All,

1)If i will write same code in store proc and function the which one will give result fastly?

2)Can i use temp table in function?

Thanks,
Tapaswani

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-01-11 : 11:58:13
1,its not about performance, but both are used in different contexts
2, You can use table variables

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

Go to Top of Page
   

- Advertisement -