How to Use Temporal Tables in SQL Server 2016

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

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

  • @MrKOMbyy
    @MrKOMbyy 7 лет назад +6

    Thank you very much! I've just discovered your channel, you're doing great job!

  • @BeRNisira
    @BeRNisira 5 лет назад +3

    Thank you, it is exactly the explanation i needed it. You are brilliant!

  • @mario17-t34
    @mario17-t34 6 лет назад +1

    Thanks much, excellento!!! So clear!!!! I was initially totally confused after other docs

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

    Amazing and superb video , easy to understand and follow
    Thank you kind sir, for the free lessons!

  • @babysarojinimakineni2971
    @babysarojinimakineni2971 2 года назад

    Clearly explained Bert. Thank you.

  • @richardsonarun
    @richardsonarun 2 года назад

    Nice simple and sweet explanation

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

    Love it, clearly explained. Thank you

  • @Star-lighting-A
    @Star-lighting-A 3 года назад

    Very clearly explained. Thanks Bert!

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

    Great feature, brilliant explanation.

  • @Tracks777
    @Tracks777 7 лет назад +2

    Brilliant work! Keep it up!

  • @aambkanaipata9434
    @aambkanaipata9434 2 года назад

    point to point explanation

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

    Super easy explanation.

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

    Great explanation, thank you!

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

    Excellent demo. Thank you.

  • @hydtechietalks3607
    @hydtechietalks3607 2 года назад

    after load, the first update did not carry the mileage? second update carried though....

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

    Thanks for the video.

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

    Good explanation.

  • @aler.4108
    @aler.4108 4 года назад

    Man, you as always are very cool. Love you :)

  • @halivudestevez2
    @halivudestevez2 2 года назад

    Very nice demo! It's clear! (2022)

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

    Nicely explained

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

    Is there a way to add column to know if it’s insert/update/delete ?

  • @mohammedesoofally
    @mohammedesoofally 5 лет назад

    Excellent video!

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

    How can you show the running script in the result (Message) windows?. Actually 2 years before "Luigi Zambetti" asked this question in the comment box. But you gave different answer.

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

    I have the need to introduce tracking of changes for a table of products and temporal tables seems to be the easiest solution, with one exception that I can't seem to find a solution for. I want the history table to be in its own database - the historical data is going to grow rapidly and by definition is unchanging, I don't want this to bloat the main database backup or AG replication! However the syntax to set up the versioning enforces "two part naming convention" and also refuses to work with a synonym or a view. Is there any other possible workaround?

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

    Hey Wagner,
    could you please share a video on adding new column to temporal table and accordingly in history table without loss of information or dropping tables.
    Thanks

  • @almeidr
    @almeidr 4 года назад +1

    Hello Bert, Thanks for this! It is something that I can use for an application that I am developing. I'm having trouble processing "updates" to the table through an MS Access front-end (-7776 error). I think this is mainly because of some ODBC driver issues. I have no trouble adding records. I am assuming that through any other front-end such as a web app, this update shouldn't be an issue, because otherwise the whole premise of having these temporal tables, fail!. Could you please confirm if you have had any issues through the front-end applications you have used to get the temporal tables to do their thing?

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

      I solved this by including a column with the data type ROWVERSION

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

    Hi Bert, I've done a.lot of work with nhibernate managed temporal tables and I'm having problems understanding the SQL version based on videos I've seen. Should they not have two sets of from/to dates? The system/audit date and the user specified effective from/to dates? All the work I've done has used the user specified dates and has involved joins on multiple tables. Is there built in functionality to perform temporal table joins? I have my own methods which are not too complicated however it's a 2-3 step process that also involves recursive CTEs to date consolidate the result set. I'm wondering if SQL server managed temporal tables have a built in mechanism to perform temporal joins and return the right results for the right dates and have some value(s) change for every date change. I'm not talking about a point in time select (those are easy) but selects with joins for multiple tables' full history for example. I don't mean the history table when I say history. I don't usually care about the history table as I'm not interested in system dates. I'm interested in user specified effective date ranges. Thanks.

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

    this video is amazing, i am new for the sql server and i kind of confused between temporal table and change data capture (CDC) . if you can answer please. thanks

  • @Linkario86
    @Linkario86 5 лет назад

    That was a very good Video! I understand it finaly.
    But I have one Question:
    When you Query the history with the Time, you have the entry of the "current" Table and that entry from the historical Table. Why are you not seeing the historical entry only?
    Is it because the "current" entrys SysEndDate is in the year 9999, so it is in the same Timeperiod as the historical one?

  • @saravananmurugesan6900
    @saravananmurugesan6900 5 лет назад

    Hi how to delete the data from temporal table , i want to delete the old data from history table , can you help me?

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

    Excellent !

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

    Just a heads-up you can't replicate(snapshot/transactional) a table that has SYSTEM_VERSIONING = ON.

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

    How can you show the script in the result windows?

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

      When you run something (F5), in the Message windows (below) appears the script that you have runned.

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

    Thanks

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

    Excellent work and very easy to understand.. Thanks. I want to ask that if am trying the same thing in my SQL 2016 so I am getting errors on SYSTEM_VERSIONING, GENERATED and HISTORY_TABLE. When I am trying to run your script then I am getting error like this:
    Incorrect syntax near 'SYSTEM_VERSIONING'.
    Incorrect syntax near 'GENERATED'.
    Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
    What should I do? Please suggest

  • @jplant1414
    @jplant1414 6 лет назад +6

    Am I the only one annoyed by the butchered pronunciation of "temporal"? It's TEM-poral, not tem-POR-al.

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

      Nope

    • @qodebrojames
      @qodebrojames 5 лет назад

      Lol always got a grammar nazi under every video

  • @andyh5533
    @andyh5533 5 лет назад

    Thanks for sharing. But dude u r sweating.

  • @samphillips446
    @samphillips446 2 года назад

    And gross!