SQL Server Insert, Delete and Update Triggers

Поділитися
Вставка
  • Опубліковано 10 гру 2024

КОМЕНТАРІ • 37

  • @SilverTechSys
    @SilverTechSys Рік тому

    I couldn’t explain it better myself if I new it at that level, thank you for taking the time to explain it in detail.

  • @beardboyphotography
    @beardboyphotography 8 місяців тому +2

    Thats a perfect video explaining the triggers, Thanks a ton Lisa!!

  • @TheBIHARIS
    @TheBIHARIS Рік тому +2

    Thanks for the complete step-by-step explanation.

  • @omotayoogunnika6865
    @omotayoogunnika6865 Рік тому +1

    Thanks for sharing, your video helped me to create a Trigger i've been trying to create for about 1 week & half prior.

  • @monicacastillo1183
    @monicacastillo1183 5 років тому +6

    Thank you so much! You're a great teacher!

  • @skdonsingh
    @skdonsingh Місяць тому

    Thank you ma'am
    It was nice explanation.

  • @hafizarahman9999
    @hafizarahman9999 2 роки тому +1

    I am new on this, and this is help me a lot. Thanks so much!

  • @praji1202
    @praji1202 2 роки тому +1

    I'm having a table with some data, and when there are some changes done to this table I need to create a trigger which will insert these changes to an already existing table but in a new column

  • @Danitolonz1
    @Danitolonz1 Місяць тому

    Hi Lisa! You're such a sweetheart and I love you so dearly!
    Please in what scenarios should I defer to use Stored procedures over UDFs and vice versa? Wen should I use SP and when should I use UDFs?

  • @john_yeager
    @john_yeager 2 роки тому +2

    very nice example thanks

  • @neyon7824
    @neyon7824 5 місяців тому

    hi. thanks for the video.
    How come it still shows messages even after SET NOCOUNT ON??

  • @fealgu100
    @fealgu100 5 днів тому

    Thanks, Lisa!

  • @gunavamshi690
    @gunavamshi690 2 роки тому +2

    Hi lisa , Nice video but how can we get the count of the number of the rows we have inserted using triggers

  • @umutogur391
    @umutogur391 2 роки тому +1

    Thank you so much for your useful video.

  • @longle7603
    @longle7603 4 роки тому +1

    Thanks Lisa, This really helped me out.

  • @jasonmichaelalunan2492
    @jasonmichaelalunan2492 4 роки тому +1

    Thankyou maam lisa!!! This really helped me out ^_^

  • @ibrahimhussain3248
    @ibrahimhussain3248 2 роки тому +2

    If there was a insert with multiple rows at the same time from a table variable or multiple row inserts in same statement, all those triggers would fail since it is assigning INSERTED.[ColumnName] to a variable. You could just do
    INSERT INTO [dbo].[CustomerLogs] SELECT INSERTED.[CustomerId], 'Inserted' FROM INSERTED;

    • @christiandebellefeuille3245
      @christiandebellefeuille3245 Рік тому

      yup. In fact INSERTED is a virtual table. So you can do an inner join with it to do your stuff. For example, if you have to udpate multiple rows.

  • @ShahnazMalik.
    @ShahnazMalik. 2 роки тому +3

    Brilliant, you deserve a lot more subscribers. Keep your work up
    Do you have any video series on python, Azure and data science ML or AI?

  • @radoslavdimitrov7505
    @radoslavdimitrov7505 Рік тому

    seems like in SQL Server 2022 there are not inserted or deleted pseudo tables and views. What should I use to make such triggers instead?

    • @marsdriver2501
      @marsdriver2501 2 місяці тому +1

      there, sql server management studio is just being dumb probably

  • @solodevelopersolo
    @solodevelopersolo 3 роки тому +1

    Amazing work

  • @leroypalmer9226
    @leroypalmer9226 4 роки тому +1

    Great video!

  • @TecnologySoft
    @TecnologySoft Рік тому +1

    Estos ejemplos ya son muy comunes, q no saben hacer algo más complicado, y algo diferente

  • @bc-ei4nc
    @bc-ei4nc 4 роки тому +1

    amazing video !!!! Thanks!

  • @nedu47
    @nedu47 2 роки тому +1

    How did you come up with CustomerLogs?

    • @michaeljames4440
      @michaeljames4440 2 роки тому

      customerLogs is just a regular table that was created to keep track of triggers initiated

  • @vaitheesvaranv4108
    @vaitheesvaranv4108 2 роки тому +1

    Thank you so much

  • @satchijena
    @satchijena 4 роки тому +1

    Excellent !!!

  • @gotchihaeyo1825
    @gotchihaeyo1825 2 роки тому +1

    It's very hard to see and read

  • @S2100211
    @S2100211 3 роки тому +1

    Good video but the sound quality lets it down.

  • @grk608
    @grk608 2 роки тому +2

    Hi Lisa, This is an AWESOME video but I'd like to know if you can help me take it a little further. I'd like to track WHAT changes were made, as well as WHO made the changes and on WHAT date and time. I'm super brand new at this but using this video, I was able to get some triggers up and running. Can you help or maybe point me in the right direction? Been all over youtube and I'm coming up dry. Thanks so much for all you do. -Glenn

  • @alionessprincess
    @alionessprincess Рік тому

    I can barely see the text.. too small!

  • @samikariem4298
    @samikariem4298 3 роки тому +2

    DUNK SCHONE

  • @Sachinkumar-qg7cp
    @Sachinkumar-qg7cp 8 місяців тому

    Very helpful🫡

  • @koserrist6977
    @koserrist6977 Рік тому

    ZA DUZO GADASZ