About 197,000 results
Open links in new tab
  1. Dynamic SQL in Databricks Notebooks — using SQL

    Aug 23, 2022 · SQL, the lingua franca of every data person, can be parameterized and be made more dynamic in a Databricks notebook. It can be used either via the use of Widgets or via the …

  2. Assign a variable a dynamic value in SQL in Databricks / Spark

    Dec 11, 2019 · The SET command used is for spark.conf get/set, not a variable for SQL queries. For SQL queries you should use widgets: https://docs.databricks.com/notebooks/widgets.html. …

  3. Incremental, Parameterized, and Dynamic SQL all on Databricks SQL

    Mar 19, 2024 · In this blog, we will walk through a simple but real-world ETL use case to highlight all the added capabilities for users that are looking to do end-to-end ETL on Databricks SQL. …

  4. Work with query parameters | Databricks Documentation

    Nov 22, 2024 · Query parameters allow you to make your queries more dynamic and flexible by inserting variable values at runtime. Instead of hard-coding specific values into your queries, …

  5. Introducing SQL Scripting in Databricks, Part 2

    May 19, 2025 · Dynamic SQL statements and setting variables. Our first step is to tell the table to change its default collation for newly added columns. You can feed your local variables with …

  6. Dynamic SQL in Databricks and SQL Server | dian germishuizen

    In this article, I will focus on Microsoft SQL Server (On-Premises or Azure) and Databricks. Use Cases In Azure Synapse Analytics (Serverless and Dedicated Pool) you can dynamically …

  7. Create Databricks tables dynamically

    Nov 3, 2022 · One you can do it with Spark.sql. spark.sql(f""" create table if not exists {table} using parquet. location = '/mnt/{table}'""") or maybe with sql: You can use widget for example …

  8. Unable to use dynamic variable passing to create a function in ...

    Sep 23, 2024 · Databricks SQL Warehouse does not allow dynamic variable passing within SQL to create functions. (This is distinct from executing queries by dynamically passing variables.) …

  9. Is dynamic SQL Queries supported on Azur Databricks SQL

    May 15, 2024 · Yes, dynamic SQL queries are supported on Azure Databricks SQL cluster. You can use the spark-sql command to execute dynamic SQL queries on Azure Databricks SQL …

  10. EXECUTE IMMEDIATE | Databricks Documentation

    Jul 17, 2024 · Learn how to use the EXECUTE IMMEDIATE syntax of the SQL language in Databricks SQL and Databricks Runtime.

  11. Some results have been removed