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 2000 Forums
 SQL Server Development (2000)
 view or function

Author  Topic 

matrixr
Starting Member

26 Posts

Posted - 2006-09-09 : 19:16:20
i have a query that joins about 5 tables and does some subqueries to get the final output, is it better that i put this into a function that returns a table or create a view?

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2006-09-09 : 20:27:48
A view will be more flexible.

A function would be handy if you want to provide parameters.

HTH,

Tim
Go to Top of Page
   

- Advertisement -