Download Latest Version SqlNotebook-64bit-2.0.0.zip (108.8 MB)
Email in envelope

Get an email when there's a new version of SQL Notebook

Home / v2.0.0
Name Modified Size InfoDownloads / Week
Parent folder
SqlNotebook-64bit-2.0.0.zip 2025-06-09 108.8 MB
SqlNotebook-64bit-2.0.0.msi 2025-06-09 106.5 MB
SqlNotebook-arm64-2.0.0.zip 2025-06-09 103.0 MB
SqlNotebook-arm64-2.0.0.msi 2025-06-09 101.0 MB
README.md 2025-06-09 3.2 kB
Version 2.0.0 source code.tar.gz 2025-06-09 1.5 MB
Version 2.0.0 source code.zip 2025-06-09 2.1 MB
Totals: 7 Items   423.1 MB 10

Or: Download the 64-bit portable zipInstall using Chocolatey

Requires Windows 10 or newer on a 64-bit computer. Going forward, 32-bit systems and Windows 7 and 8 are no longer supported. Users of older machines may continue to use version 1.2.3 which should work indefinitely.

Changes

πŸ”„ FOREACH Loop Statement

Iterate through table rows with automatic variable assignment:

:::sql
FOREACH (@id, @name, @email) IN customers 
BEGIN
    PRINT CONCAT('Customer: ', @name, ' (', @email, ')');
END
  • Variables are automatically declared and assigned values from each row
  • Supports BREAK and CONTINUE statements like other loops
  • Works with tables, views, and subqueries

πŸ’» Command-Line Interface

Execute SQL Notebook scripts from the command line without opening the GUI:

:::bash
SqlNotebookCmd "MyNotebook.sqlnb" "MyScript"
  • Perfect for automation, batch processing, and CI/CD pipelines
  • Outputs results in CSV format
  • Returns appropriate exit codes for success/failure

πŸ“ Dynamic Script Management

Create and delete scripts programmatically:

:::sql
-- Create a new script
CREATE SCRIPT DataCleanup AS '
    DELETE FROM temp_table WHERE processed = 1;
    PRINT ''Cleanup completed'';
';

-- Execute the script
EXECUTE DataCleanup;

-- Remove the script when no longer needed
DROP SCRIPT DataCleanup;
  • CREATE SCRIPT to add new scripts dynamically
  • DROP SCRIPT and DROP PAGE to remove scripts and pages
  • Useful for generating reports, temporary procedures, and workflow automation

πŸ’Ύ Save Command

Save your notebook programmatically from within scripts:

:::sql
-- Save to current file
SAVE;

-- Save to a specific file
SAVE 'MyBackup.sqlnb';
  • Particularly useful in SqlNotebookCmd for persisting changes
  • Must be used outside of transactions (use "None (auto-commit)" mode in GUI)

πŸ¦† DuckDB Integration

Import data from DuckDB files with full UI support: - Drag and drop .duckdb files directly into SQL Notebook - Available in Import menu β†’ "From file..." - Support for both copying data and live database connections

:::sql
-- Copy data from DuckDB
IMPORT DATABASE 'duckdb'
CONNECTION 'Data Source=C:\data\analytics.duckdb'
TABLE sales_data;

-- Create live connection
IMPORT DATABASE 'duckdb'
CONNECTION 'Data Source=C:\data\analytics.duckdb'
TABLE sales_data
OPTIONS (LINK: 1);

πŸ—„οΈ Enhanced SQLite Support

Expanded SQLite file compatibility: - Open SQLite databases (.db, .sqlite, .sqlite3) directly via File β†’ Open - Import SQLite tables using the same interface as other databases - Seamless integration with your existing SQLite workflows

Source: README.md, updated 2025-06-09