SQL Server Stored Procedure - How To

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

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

  • @colourNika
    @colourNika Год назад +2

    thank you, simple explanation with straightforward examples ( I wish there were one advanced example)

  • @jerrychan1471
    @jerrychan1471 2 месяца назад

    Very clear examples, thanks for the video! You provided the exact info what I was looking for!

  • @JohnsonAdebayo-y7b
    @JohnsonAdebayo-y7b Год назад +1

    Well done on this video, please I need your tutorial on how to use the Stored procedure for the validation of input parameters

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

      Thanks! You can use techniques such as if statements or case statements inside the stored procedures to validate the parameters

  • @eromoselealbert6913
    @eromoselealbert6913 12 дней назад

    This video is very helpful. Thanks for sharing this.

  • @Impergator-ld5gi
    @Impergator-ld5gi Год назад +1

    Good structured Video and informative content 💪

  • @gunthersantos
    @gunthersantos 27 дней назад

    thanks that was a really good explanation!!😉

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

    Very well explained

  • @ryandx-v9j
    @ryandx-v9j 6 месяцев назад

    Concise, thanks :)

  • @kimleng539
    @kimleng539 7 месяцев назад

  • @anujamahagamage1316
    @anujamahagamage1316 6 месяцев назад

    🥰🥰

  • @kvelez
    @kvelez 5 месяцев назад

    CREATE PROCEDURE SelectCustomers
    AS
    SELECT *
    FROM Customer;
    =====
    CREATE PROCEDURE InsertCustomer
    @customer_name NVARCHAR (50), @customer_status INT=1
    AS
    INSERT INTO Customer
    VALUES (@customer_name, @customer_status);
    =====
    CREATE PROCEDURE UpdateCustomer
    @newName NVARCHAR (50), @newActive INT, @customerId INT
    AS
    UPDATE Customer
    SET Name = @newName,
    is_active = @newActive
    WHERE Id = @customerId;
    ====
    CREATE PROCEDURE DeleteCustomer
    @customerId INT
    AS
    DELETE Customer
    WHERE Id = @customerId;

    • @DatabaseStar
      @DatabaseStar  5 месяцев назад +1

      Is there a question you have about this code?

    • @kvelez
      @kvelez 5 месяцев назад

      @@DatabaseStar I wanted to share it with others so that they can use it.
      **But if you can do a followup on procedures, I would enjoy it.