SQL Stored Procedures | Snowflake Scripting

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

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

  • @babisg6955
    @babisg6955 28 дней назад +1

    Why use anything other than SQL for stored procedures?

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

    great tutorial!
    my company is migrating out of Oracle to Snowflake and this just gave me some great insight as to where i need to start learning.
    Thanks for posting!

  • @tejasnaik4604
    @tejasnaik4604 2 года назад +2

    we can do overloading of procedure, exception handling like oracle in store procedure.

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

    how do we print successful message after each step ran successfully in SQL proc in order to debug it?

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

      stackoverflow.com/questions/59145016/print-snowflake-query-in-stored-procedure

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

      @@mastering_snowflake Thanks for replying. That is for Java Script, how about in SQL procedure?

  • @AR-Exp
    @AR-Exp Год назад +1

    I want to "create or replace table as 'select * from view' " using stored procedure, and execute the procedure at 6 AM Daily, Do I have to make a task that executes the procedure?

  • @EricaBerry232
    @EricaBerry232 8 месяцев назад

    Is a stored procedure the only way to execute multiple SQL statements?

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

    Hi Adam, when I used strored procedure to access query_history view using sysadmin role..I am getting following error "Requested information on the current user is not accessible in stored procedure" kindly do the needful

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

      Please check the role you’re using in snowflake has the correct privileges

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

    Thanks for your video Can we use cursor loop (same as plsql)

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

      Generally you are probably best to use JavaScript stored procs for looping and SQL for set based workloads.

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

      @@mastering_snowflake could you please help me Any videos available .please share me i will try to understand

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

    Hey there, i feel blessed to keep in touch with you, through asking questions.
    As a newbie sql learner i have a general enquiry.
    I learned that a module can contain routines, procedures, or SQL commands.
    What is the distinct difference between those three components.
    Thanks for taking care of this.

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

      Hey, can you explain what you mean when you refer to a 'module' please?

  • @shaxxie5237
    @shaxxie5237 8 месяцев назад

    the main thing i came here for was to see how to pass in a parameter into a SP by calling it. IT would be great if you could show this.

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

    Very Nice 👌