SQL Stored Procedures | Snowflake Scripting

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

КОМЕНТАРІ • 18

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

    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!

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

    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.

  • @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?

  • @EricaBerry232
    @EricaBerry232 4 місяці тому

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

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

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

  • @mukunthans3441
    @mukunthans3441 Рік тому +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  Рік тому

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

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

    Very Nice 👌

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

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

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

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

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

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

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

    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 Рік тому

    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?