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
 Difference

Author  Topic 

mahimam_2004
Starting Member

40 Posts

Posted - 2006-05-16 : 01:30:05
Hi,
What is the difference between Inline-table value function and multi statement table value function?
Thanks In Advance

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-05-16 : 01:45:21
Check out this link

http://www.codeguru.com/columns/experts/article.php/c11769/

If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2006-05-16 : 03:27:38
post your requirements, have us take a look of what you already did and then you can decide which one you'll use

--------------------
keeping it simple...
Go to Top of Page

SreenivasBora
Posting Yak Master

164 Posts

Posted - 2006-05-17 : 15:49:05
Inline UDF ---> Simply returns the rowset as table.

Ex: CREATE FUNCTION SalesByStore (@storeid varchar(30)) RETURNS TABLE AS
RETURN (SELECT title, qty FROM sales s, titles t WHERE s.stor_id = @storeid and t.title_id = s.title_id)

Multi-statement table-valued function ----> is also returns the rowset as table. But you can alos perform create Tablevariables and update/Insert/Delete the data.

see books online for more details.

With Regards
BSR
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-05-17 : 17:02:19
quote:
Originally posted by mahimam_2004

Hi,
What is the difference between Inline-table value function and multi statement table value function?
Thanks In Advance





Sounds like an interview question


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2006-05-17 : 23:43:27
it's #2 question of the 10 questions in a terminology homework

he atleast spread them out

--------------------
keeping it simple...
Go to Top of Page

PSamsig
Constraint Violating Yak Guru

384 Posts

Posted - 2006-05-18 : 01:53:45
Oh my they are sweet (implying blissfull ignorance), when shouldn't they be used an how do they affect performance?

-- This one's tricky. You have to use calculus and imaginary numbers for this. You know, eleventeen, thirty-twelve and all those.
Go to Top of Page
   

- Advertisement -