Multi statement table valued functions in sql server Part 32

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024

Комментарии • 43

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  12 лет назад +17

    In general from a performance perspective always, prefer Inline Table Valued function(ITVF) over Multi-Statement table valued function(MSTVF), as the ITVF will perform better than the MSTVF. This is because, SQL Server treats ILTVF much like a view, hence it has the capability of using the table statistics, where as, this is not the case with MSTVF.

  • @BR-ec9zd
    @BR-ec9zd 2 года назад +3

    Here in 2022. Very good few videos on UDFs. Been studying for a job interview and walked away feeling like I have a pretty clear understanding of this SQL. Thank you for your work and making an advanced topic understandable to many.

  • @masgharlatif
    @masgharlatif 8 лет назад +9

    Excellent . Kudvenkat is a really nice human , He is my best technical teacher ever . Slam to you man :)

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  12 лет назад +9

    An Inline Table Valued function(ITVF) body contains just a single TSQL statement, where as Multi-Statement table valued function (MSTVF) can contain multiple TSQL statements. So, if the table that is being returned by the function, requires several intermediate processing steps and if cannot be achieved with ITVF, then we prefer MSTVF.

  • @Devi_Shylu
    @Devi_Shylu 2 года назад +1

    Each video about SQL is very clear and so informative. I felt very useful of this. Thank you.🤩🤩

  • @jasonleelawlight
    @jasonleelawlight 11 лет назад

    This is exactly what I am looking for because in the video all the differences mentioned are actually the advantages of ITVF. So I believe someone must have got the same question in the mind and chances are you have given the answer already. So I looked through the posted comments and have found it here. Thanks again.

  • @krzysztofs8535
    @krzysztofs8535 7 лет назад +3

    What can I see? Perfect as always! I hope to end this whole SQL course !

  • @liltip1104
    @liltip1104 6 лет назад +1

    2018 and still , your videos are amazing !!

  • @anuragvashishtha6660
    @anuragvashishtha6660 11 лет назад

    Great compilation. There is in-depth explanation of the Concepts.
    Thanks a ton Venkat!

  • @tonykc7057
    @tonykc7057 Год назад

    Clear and Very helpful 👍

  • @santanupuhan1259
    @santanupuhan1259 10 месяцев назад

    Thank you for the session

  • @someshsingh7116
    @someshsingh7116 Год назад

    In 2023 your videos are most valuable videos

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  12 лет назад +1

    Hi Suman,
    Returns @Table table (Id int, Name nvarchar(20), DOB Date)
    The first RETURNS statement, just specifies that, the function is returning a table with the specified structure
    The RETURN statement in the body of the function, signalls that, all the processing is done, and the Table specified in in first RETURNS statement can now be returned to the caller of the function

  • @RavikiranS
    @RavikiranS 8 лет назад +1

    Hi. I just ran a Store Proc and View created on the same table. However, for me the performance of the Store Procedure was slightly better than that of the View. Now how would you explain that?

  • @sumanhappy
    @sumanhappy 12 лет назад +1

    hi venkat, can u please tell me why are you using two return statements in multi statement table valued functions, the return statement returns the @table but which return statement does that

  • @bellissimo2930
    @bellissimo2930 4 года назад

    Wonderful video. Thanks a lot for such in depth explanation. Can you please tell me if underlying tables are updated, will that modify the inline table valued function immediately or we have to do any additional steps so that function comes in sync with the underlying table?

  • @justinli19901027
    @justinli19901027 8 лет назад +12

    this man is god!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  8 лет назад +5

      Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
      I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
      ruclips.net/user/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs or to download all the videos for offline viewing please visit
      www.pragimtech.com/kudvenkat_dvd.aspx
      Slides and Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      ruclips.net/video/y780MwhY70s/видео.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      ruclips.net/user/kudvenkat
      If you like these videos, please click on the THUMBS UP button below the video.
      May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
      Good Luck
      Venkat

  • @balajijayaraman5584
    @balajijayaraman5584 6 лет назад

    Good video about in line and multi value function.

  • @makmashuk
    @makmashuk 7 лет назад

    aha TNX A LOT BRO .. FOR YOUR TIME

  • @naodagere8210
    @naodagere8210 4 года назад

    Kudos!

  • @piyasidey2117
    @piyasidey2117 4 года назад

    Sir one thing I can't understand that if we get all the benefits from Inline table valued function then why should we use Multi statement table valued function..just for the security reason?

  • @mesfinguni6106
    @mesfinguni6106 3 года назад

    Thanks a lot for your nice video. How can you selectively call data from the MSTV function you created? (I mean, you can call data as 'Select *from [MSTVF_Name]()'. But, I want to call lists based on input parameters, let say only Gender = Female and Department = HR?

  • @stutitehri993
    @stutitehri993 10 лет назад

    which is more useful mstv function or itvf function

  • @kaushikbhadani
    @kaushikbhadani 11 лет назад

    extremely very very good

  • @kiranpedamkar
    @kiranpedamkar 12 лет назад

    sir, you have not uploaded videos on nested or inner/outer query on sql server.

  • @aamirjamal6833
    @aamirjamal6833 7 лет назад +5

    Is this the only video in which you haven't said "have a good day" at the end of your video?? :P

  • @gultekinhesenova4582
    @gultekinhesenova4582 11 лет назад

    Hi. Thank you for these videos... But I didn't understand this video I didn't know that if Inline Table Valued function(ITVF) and Multi-Statement table valued function(MSTVF) retrieve same table then why do we always use ITVF?

  • @amitvarma295
    @amitvarma295 10 лет назад

    sir...can you explain, in which situation we use the MSTV function...?

  • @altafraza372
    @altafraza372 3 года назад

    Can we use joins in ILTVF and MLTVF.

  • @DanielWillen
    @DanielWillen 7 лет назад

    What would be the difference between a multi-statement table valued function and a view with schemabinding? They look the same to me! (except that I wouldn't be able to parameterize )

  • @mohammadrafiee9072
    @mohammadrafiee9072 4 года назад

    Great

  • @adityasamanta8621
    @adityasamanta8621 10 лет назад

    I noticed that when we update the inline table value function, the original table also gets updated. Is there anyway to update the inline table but not the original table

  • @gultekinhesenova4582
    @gultekinhesenova4582 11 лет назад

    I understand that in MSTVF doesn't use update statement but retieve same tabel

  • @poonamjagdale58
    @poonamjagdale58 3 года назад

    getting error as invalid column name while updating table using inline function.Same is getting updated using normal query.. What can be the real cause

  • @vankadarinagasusmitha5160
    @vankadarinagasusmitha5160 3 года назад

    Can we insert two tables at a time
    I mean
    Insert into @table
    Select I'd,name,dob from tblEmployee
    select deptid, deptname from Department
    By passing additional required parameters

  • @manikdhingra1606
    @manikdhingra1606 7 лет назад

    Thanks for the video, I would like to request if you can demonstrate a scenario where Inline function cannot be used and only multi value should be used OR vice versa.
    Thanks in advance!

  • @MuhammadSaaddev
    @MuhammadSaaddev 5 лет назад +1

    Ok, everything was going smoothly until I saw Functions performing DML Operations (insert,update,delete). We all know the basic difference between stored procedure and functions is Stored Procedures can perform DML operations while functions can not. How come inline functions are able to perform insert, update etc ??

  • @georgigeorgiev4871
    @georgigeorgiev4871 8 лет назад

    Why would amybody use multiline if it's slower and rigid? Security maybe?

  • @kiranpedamkar
    @kiranpedamkar 12 лет назад

    and also, does not completed remaining indexes. please cover that much also...

  • @mokarem75
    @mokarem75 10 лет назад

    What are the advantages using Inline Table Valued Functions over Views?