Temporary tables in SQL Server Part 34

Sdílet
Vložit
  • čas přidán 21. 07. 2024
  • In this video we will learn about
    1. What are temporary tables
    2. The 2 different types of temporary tables -- Local Temporary Tables and Global Temporary tables
    3. Difference between local and global temp tables
    Text version of the video
    csharp-video-tutorials.blogspo...
    Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our CZcams channel. Hope you can help.
    / @aarvikitchen5572
    Slides
    csharp-video-tutorials.blogspo...
    All SQL Server Text Articles
    csharp-video-tutorials.blogspo...
    All SQL Server Slides
    csharp-video-tutorials.blogspo...
    All Dot Net and SQL Server Tutorials in English
    czcams.com/users/kudvenka...
    All Dot Net and SQL Server Tutorials in Arabic
    / kudvenkatarabic

Komentáře • 92

  • @nachiket814
    @nachiket814 Před 5 lety +24

    I wish ALL the tutorials on CZcams were this comprehensive and yet simple to understand. Excellent work. Thanks for this.

  • @sudheerswarna4341
    @sudheerswarna4341 Před 10 lety +18

    Google'd across many websites, but none of them are clear than your tutorials... Best in Best

  • @Csharp-video-tutorialsBlogspot

    Hi, thank you very much taking time to answer this question. As, I am receiving lot of questions everyday from our youtube users, I am finding it extremely difficult to answer all the questions in time. With your help I am confident, we will be able to answer most questions in time. Appreciate your time and effort. God bless you.

  • @Csharp-video-tutorialsBlogspot

    Thank you very much for taking time to give feedback. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.

  • @vpraveendavuluri
    @vpraveendavuluri Před 9 lety +2

    Way of explanation is excellent and highly informative. Wouldn't get any better than this. Thanks a ton Sir !!!

  • @KuriaNdungu
    @KuriaNdungu Před 7 lety +1

    Very well explained. Love your videos. you are blessed with the ability to explain in a way that is easy to understand. Thank you!

  • @eshwarmmm958
    @eshwarmmm958 Před 5 lety +3

    Bro, You are genius, Thank you so much, I read many articles about this, but i did not get clear idea. Now i got.

  • @peternguyen9382
    @peternguyen9382 Před rokem +1

    wow it has been 10 years ago. thanks for great work!

  • @abeer_nawaf_sul
    @abeer_nawaf_sul Před 8 lety +1

    absolutely simple and clear .. greatest turorials on youtube.. thank you

  • @bsabhiram
    @bsabhiram Před 7 lety

    Simple way to illustrate the concepts. Thanks for sharing this playlist on SQL. I find videos far useful than reading books.

  • @sujithsai5528
    @sujithsai5528 Před rokem

    Most underrated sql course in youtube why these videos have less likes. i am learning easy as a beginner thankyou so much sir.

  • @krismaly6300
    @krismaly6300 Před 10 lety

    AWESOME. Concept explained crystal clear. I would recommend others to watch.
    Thanks a bunch

  • @krismaly
    @krismaly Před 11 lety

    I enjoyed watching this video. I suggest all developers to watch. Conceptually explained very clear. Also at the end mentioned interview questions on the topic.
    Dear Venkat I think after every video you make please include probable interview questions if possible that makes very good sense.
    Thanks a bunch

  • @TirumalaSrinivasudu
    @TirumalaSrinivasudu Před 2 měsíci

    Thanks for the video.. It's pretty clear explanation.. Keep posting more videos on sql...

  • @rudrashivgan5476
    @rudrashivgan5476 Před 8 lety +1

    Excellent Simply Excellent........I am Impressed

  • @zainulabideen8109
    @zainulabideen8109 Před 5 lety

    Great Teacher Sir Venkat. Amazing Methodology with great knowldge

  • @rakeshpandey1899
    @rakeshpandey1899 Před 2 lety

    Still there are no such details I found in another channels..you are the best @kudvenkat sir 💐. Thankyou so much sir

  • @anuragvashishtha6660
    @anuragvashishtha6660 Před 11 lety

    Awesome explanation. Great work Venkat!!

  • @AJSAMUEL12
    @AJSAMUEL12 Před 11 lety

    Hi Venkat, thank you so much for making these videos and sharing your knowledge. You are doing an awesome job. God Bless you too :)

  • @krzysztofs8535
    @krzysztofs8535 Před 7 lety +1

    very useful video! Thanx Venkat!

  • @mohitmittalful
    @mohitmittalful Před 9 lety +2

    It is nice tutorial to enhance your knowledge..

  • @noorabed7716
    @noorabed7716 Před 11 lety

    i'll continue all the videos ... you are awesome :) THANK YOU

  • @aerobicsparadise
    @aerobicsparadise Před 11 lety

    Great job Venkat ! easy to follow. :)

  • @vikasdubey9284
    @vikasdubey9284 Před 4 lety

    Hi venkat, I really appreciate your effort in sql server blogs and videos. i have learned a lot from videos for SQL server and we used in office work that is very much helpful.
    I have a question for you regarding sql query. if you could help me it would be grateful. One of interview ask me and i am not able to answer this.
    Question: Create a table procedure as per user requirement, Please follow the instruction is given below.
    Instruction: User can give multiple columns (Column 1, 2, 3, or 4 and So on), It should be dynamic column.
    Main Table
    A
    B
    C
    D
    E
    F
    G
    H
    Output: if user put two columns then:
    Column 1 Column 2
    A B
    C D
    E F
    G H
    Output: if user put three columns then:
    Column 1 Column 2 Column 3
    A B C
    D E F
    G H

  • @barbaraulitsky9055
    @barbaraulitsky9055 Před 3 lety

    This video is very helpful! Thank you very much!

  • @manaspratimbhuyan1312
    @manaspratimbhuyan1312 Před 10 lety +1

    Thank you sir........its very very helpful..

  • @jstbe
    @jstbe Před 3 lety

    A really really really good explanation, thanks a lot!.

  • @venkatarao5638
    @venkatarao5638 Před rokem

    Excellent And Good videos yet simple Learning to understanding.Thanks for this.

  • @lizabest7767
    @lizabest7767 Před rokem

    You are the best!!!! 🙏🙏🙏🙏🙏

  • @Nehasingh-ep1mf
    @Nehasingh-ep1mf Před rokem

    This video helped me a lot....Very informative...

  • @phpmysql2007
    @phpmysql2007 Před 2 lety

    You are clear and easy to understand thank you sir.

  • @SathishKumar-gs4er
    @SathishKumar-gs4er Před 8 lety +1

    The way of explanation is too good,i would like to watch all your SQL videos and learn SQL...Thanks a ton sir!!!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  Před 8 lety +2

      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
      czcams.com/users/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.
      czcams.com/video/y780MwhY70s/video.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      czcams.com/users/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

    • @SathishKumar-gs4er
      @SathishKumar-gs4er Před 8 lety

      As per your lesson i have created stored procedure for the purpose of avoid the slow pwrformance in sql...Even i am facing the same problem after the creation of stored procedure..Please help me...I am struggling with this Past 10 days....

    • @SathishKumar-gs4er
      @SathishKumar-gs4er Před 8 lety

      sir if possible please share your e mail ID or contact number...Please

  • @srodte
    @srodte Před 11 lety

    Very clear and easy to understand.

  • @gmarupa
    @gmarupa Před 3 lety

    Hi Venkat, very nice explanation. Could you please clarify the below question. The Global Temporary table will be destroyed as soon as the connection in which it is created closes. I don't think it will be there till the last connection referencing is closed.

  • @damienbates
    @damienbates Před 3 lety

    Thank you sir! Much appreciated.

  • @JenJen-sf5hg
    @JenJen-sf5hg Před 9 lety +1

    It looks like you have to enter your own data. How do you create a table with the data that is already in the database? Thank you!

  • @SuchiJainful
    @SuchiJainful Před 11 lety

    Indeed - Great explanation...

  • @sajidhameed1000
    @sajidhameed1000 Před 8 lety +6

    Try to correct you sir well explained but in case of global temp table if you create a table in one connection and that connection is closed it will dropped automatically and you can't select query in second open connection.

    • @SuperGojeto
      @SuperGojeto Před 8 lety

      +Sajid Hameed thanks for the info i checked it programatically ur right global temp table also gets delted.

  • @priyaramraj5207
    @priyaramraj5207 Před 10 měsíci

    Thank you for a wonderful session.

  • @sureshrajput5794
    @sureshrajput5794 Před 9 lety +1

    very well explained sir (y)

  • @nimeshambalalpatel3032

    Very nice sir!! My Pranams to you

  • @surendra_tarai
    @surendra_tarai Před rokem

    It seems very easy, i like your all videos. but It will better if you can keep less duration of video.

  • @deepak_shinde
    @deepak_shinde Před 2 lety

    nicely explained..good communication

  • @AjeetSingh-oo6nt
    @AjeetSingh-oo6nt Před 7 lety

    Awesome Sir ji ...

  • @breeyuan1032
    @breeyuan1032 Před 9 lety

    Thank you for your clear explanation

  • @AJSAMUEL12
    @AJSAMUEL12 Před 11 lety

    Hi Ben, you can't access the table #personaldetails from another query window. In the above query, we are not querying the table #personaldetails rather we are accessing the sysobjects table which stores information about temporary tables and some other info. We can access sysobjects table from any connection.

  • @DINU19861
    @DINU19861 Před 6 lety

    Hello sir, really good session. I have a question from this, can we have both schema binding and encryption for a function?

    • @tabrez1basha
      @tabrez1basha Před 5 lety

      Hi Dineash, Yes you can have both. Make use of WITH SCHEMABINDING, ENCRYPTION while creating or altering function

  • @NooOnee1111
    @NooOnee1111 Před 6 lety

    Hello Sir,
    i created store procedure with global temp table, and when i execute this store procedure in sql server , i can see the ##mytable in tempdb. but when execute same store procedure from web application then i'm unable to locate ##mytable in tempdb. but i'm able to retrieve data from ##mytable in web application.

  • @chaitanyakiran100
    @chaitanyakiran100 Před 10 lety +2

    where is the video about table variable ?pls let me know ?

  • @rathodkrunal
    @rathodkrunal Před 11 lety

    Nicely explained.

  • @abobakereelgarari3843
    @abobakereelgarari3843 Před 3 lety

    thank you very much ❤️🌼

  • @arunkumarpathak6793
    @arunkumarpathak6793 Před 3 lety

    Hi i just want to know what happen when 1 global table is access by 2 connection at the same time and in both the connection update the global table so data is override or not in global table

  • @onlineaccount-wh2yx
    @onlineaccount-wh2yx Před 7 měsíci

    I thought if two connections were open .We can't drop a global temp table from one of the connections unless it is the last connection .But I was able to delete global temp table from one of the connections even though another connection was still open . ?

  • @AzraFakri
    @AzraFakri Před 3 lety

    If we have a stored proc that contains an insert into ##temp_table statement, do we need to add a line to drop the ##temp_table first before the actual insert into statement? I need to schedule the SP to run everyday. Thanks in advance.

    • @ajaymathur7137
      @ajaymathur7137 Před 2 lety

      Yes better do that, otherwise it will create a new temptable everyday which is not a good thing.

  • @rkfactsstories
    @rkfactsstories Před 5 lety

    good explanation sir

  • @akshjanawadkar7824
    @akshjanawadkar7824 Před rokem

    i refer your video if unable to understand the concepts any where tq

  • @anilgarlapati8998
    @anilgarlapati8998 Před 8 lety

    Thank you

  • @mrudangdalal
    @mrudangdalal Před 8 lety +7

    Hi, here one thing is not clear is, what is the need to having Temporary tables . Can you explain the use of it ?

    • @krishnendrabhattacharyya4609
      @krishnendrabhattacharyya4609 Před 7 lety +2

      mrudang dalal sometimes when we have subquery joins in our SQL query,it tends to take more time...so to get better performance we use this temp table and use it in join directly rather than using subquery

    • @ragavendravignesh1028
      @ragavendravignesh1028 Před 5 lety

      @@krishnendrabhattacharyya4609 is that the case. Then we are inserting values into temporary table manually. How come it resolve the problem when we had more values to insert. Everytime we have to do that right?

  • @Muhammadali-jd5fu
    @Muhammadali-jd5fu Před 4 lety

    thank you

  • @ranganathanmca1
    @ranganathanmca1 Před 11 lety

    thank u so much

  • @TheGayatri1
    @TheGayatri1 Před 6 lety

    When do we use one over the other?

  • @deepro__
    @deepro__ Před rokem

    Thanks, Sir

  • @gaurika4927
    @gaurika4927 Před 7 lety +1

    when do we need these temporary tables?

  • @sssaamm29988
    @sssaamm29988 Před 2 lety

    Do we need any permissions to create a temporary table. We QA are general given read only access to query data.

  • @semikolon4229
    @semikolon4229 Před 3 lety

    Thanks

  • @narendra6173
    @narendra6173 Před 7 lety +1

    where is the video MAGIC tables ?pls upload that video in one interview ask that question to me....please upload that one..

  • @stutitehri993
    @stutitehri993 Před 10 lety

    temp tables can be widely used in stored procedures

  • @rafaymir.
    @rafaymir. Před 5 lety

    BEST.

  • @sirdot4052
    @sirdot4052 Před 5 lety

    thanks

  • @TrueLove-cr4pu
    @TrueLove-cr4pu Před 5 lety

    Can you please explain magic tables concept?

  • @obaidullahkawsar5080
    @obaidullahkawsar5080 Před 7 lety

    Hello' i don't clearly understand of temporary table, in which area we use temp tables.

  • @salihasaeed9471
    @salihasaeed9471 Před 6 lety +1

    is there any video related to table variable on your channel?

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  Před 6 lety

      Hi Saliha - I think table variable is discussed in the following video, but not 100% sure on the level of detail. Please check it out when you have some time. Hope you will find it useful.
      czcams.com/video/P3uBWp0qvlo/video.html&index=101&list=PL08903FB7ACA1C2FB
      Here is the link to the full SQL Server playlist.
      czcams.com/play/PL08903FB7ACA1C2FB.html

    • @salihasaeed9471
      @salihasaeed9471 Před 6 lety

      thanks sir...

  • @srs3474
    @srs3474 Před 7 lety

    Nice :-0)

  • @rkfactsstories
    @rkfactsstories Před 2 lety

    Temp tablets and magical tablets are the same or different 🤔

  • @gamergunna
    @gamergunna Před 11 lety

    Hello Venkat, I can access the local temporary from another connection when I copy and paste
    Select name from Tempdb..sysobjects
    Where name like '#persondetails%'
    to the new query window, why is this?
    You are amazing in the UK too ! Ben

    • @naznazira8651
      @naznazira8651 Před 10 měsíci

      Did you found the answer to this question.
      Althought its not like accessing but we are able to list down from other connection too

  • @chaitanyakiran100
    @chaitanyakiran100 Před 10 lety

    what are Sql Jobs ?

  • @dharmikraval6520
    @dharmikraval6520 Před rokem

    How can I update the data in the table without affecting the base tables

  • @realglz
    @realglz Před 5 lety

    So close to 666 likes 😱

  • @santanupuhan1259
    @santanupuhan1259 Před 7 měsíci

    Hello😂😂

  • @luffyy8194
    @luffyy8194 Před 3 lety

    Thank you