Product Overview

Smart Export for SSMS is a productivity suite for Microsoft SQL Server. Tagline: Beautiful Excel exports from SSMS in one click.

SQLToExcel includes three complementary tools that share the same installer and license:

ModulePurpose
Smart ExportWrite or paste SQL, preview results, and export to Excel, CSV, HTML, or images — with style templates, column mapping, data masking, and more.
Smart UpdateRun SELECT queries and edit results in an Excel-like grid — then write INSERT, UPDATE, and DELETE back to the database.
Smart Bulk SQLQueue .sql script files and batch execute them against a connection — with concurrent runs, scheduling, and execution history.

Smart Export — common use cases

  • Daily report exports
  • Sending formatted Excel files to business stakeholders
  • Post-query workflows — copy as SQL, send email, generate scripts
  • Import existing Excel, CSV, or HTML files and re-export without a database connection

Smart Update — common use cases

  • Quick data fixes without writing manual UPDATE statements
  • Bulk-inserting rows from a query result
  • Reviewing and editing lookup tables inline
  • Generating WHERE / IN / MERGE scripts from selected rows

Smart Bulk SQL — common use cases

  • Running migration or seed scripts across many .sql files
  • Deploying schema changes to staging before production
  • Scheduled off-peak batch execution
  • Reviewing which scripts succeeded or failed with per-file error details

Supported environments

  • SSMS extension — SSMS 18 and later (installer requires SSMS 18 minimum)
  • Windows desktop edition — standalone app with manual connection strings; Smart Update has its own tab

System Requirements

  • Windows 10 or Windows 11 (64-bit)
  • SQL Server Management Studio 18 or later
  • .NET Framework 4.7.2 or later

Installation

SSMS extension

  1. 1

    Run the installer

    Download SQLToExcelSetup.exe and run it with administrator privileges.

  2. 2

    Restart SSMS

    Close and reopen SQL Server Management Studio after installation.

  3. 3

    Open from the menu

    Smart Export appears under Extensions: Smart Export..., Activate License..., and About.... Smart Update appears under Tools: Smart Update.... Smart Bulk SQL appears under Tools: Smart Bulk SQL....

Menu itemFunction
Extensions → Smart Export...Open the export work window
Tools → Smart Update...Open the inline editing window
Tools → Smart Bulk SQL...Open the batch SQL script runner
Extensions → Activate License...Activate your license key
Extensions → About...Version and product information

Object Explorer shortcut

Right-click any table in Object Explorer and choose Smart Update... to open Smart Update with a SELECT statement pre-filled, the connection selected, and the query executed automatically.

Smart Update entry from SSMS Object Explorer table context menu
Right-click a table → Smart Update...

Quick Start — Smart Export

  1. 1

    Write SQL in a query window

    Compose or select the SQL statement you want to export.

  2. 2

    Open Smart Export

    Choose Smart Export → Smart Export... from the SSMS menu.

  3. 3

    SQL auto-fills

    The tool reads the current query editor text automatically.

  4. 4

    Execute

    Select a database connection and click Execute (or press F5).

  5. 5

    Export

    Preview results, then click Export to save as Excel or another format.

Smart Update Overview

Smart Update is the visual query + grid editing + write-back module in SQLToExcel. It is built around the SmartUpdateControl component and lets you edit query results like a spreadsheet, then persist changes to SQL Server.

How to open Smart Update

Entry pointBehavior
Tools → Smart Update...Opens the Smart Update tool window
Object Explorer → right-click table → Smart Update...Auto-fills SELECT, selects the connection, and executes the query
From a query editor (via menu)Attempts to read the current query window SQL and fill the editor
SQLToExcel Desktop → Smart Update tabSame control as the SSMS extension
Smart Update main window with schema browser, SQL editor, and editable grid
Schema browser, SQL editor, toolbar, editable grid, and status bar

Connection & query

  • Select a database connection from the dropdown — a status badge shows connected / disconnected
  • Left panel: Schema browser — double-click a table to generate SQL and execute
  • Right panel: SQL editor with syntax highlighting
  • Only SELECT statements are supported — press F5 or click Execute
  • Editable mode loads up to 10,000 rows; larger result sets are truncated with a warning

Smart Update vs Smart Export

Smart ExportSmart Update
Primary goalExport results to filesEdit data in the database
OutputExcel, CSV, HTML, imageINSERT / UPDATE / DELETE
GridPreview for exportEditable with write-back
Row limit (typical)Up to 500,000 preview rows10,000 editable rows

Quick start

  1. 1

    Open Smart Update

    Tools → Smart Update... or right-click a table in Object Explorer.

  2. 2

    Select connection & run SQL

    Choose a connection, write or accept the SELECT, and press F5.

  3. 3

    Edit the grid

    Change cells, add rows, or delete rows when editing is enabled.

  4. 4

    Save changes

    Use Auto save (save on row leave) or click Save for manual batch commit.

Grid Editing

When all editable conditions are met, the result grid supports full CRUD write-back. Without a valid license, the grid is read-only.

ActionHow it works
Modify rowEdit a cell → row marked Modified → UPDATE on save
Add rowClick Add → fill new row → INSERT on save
Delete rowSelect row(s) → Delete → DELETE on save
Auto saveChanges save when you leave the row
Manual saveEdit multiple rows, then click Save to batch-commit
CancelAuto save: undo current row; Manual: discard all unsaved changes
EscCancel editing the current cell

Editable conditions

  • Valid license activated (unlicensed = view only)
  • Query resolves to a single updatable table
  • Views are read-only
  • Primary key columns must appear in the result set
  • Result set has 10,000 rows or fewer

Visual feedback

StateColor
New rowGreen
Modified, unsavedYellow
SavedDark green
New row highlighted in green in Smart Update
New row (green)
Modified cells highlighted in yellow
Modified, unsaved (yellow)
Delete selected rows in Smart Update
Multi-row delete

Column protection rules

Column typeBehavior
Identity / computed columnsRead-only — gray background
JOIN columns from non-target tableRead-only
Primary key / WHERE columnsLight background; may be frozen
Required columnsRed highlight when empty; validated before save

Data validation

  • Input validated against column type and schema (length, nullability, etc.)
  • Required fields checked before save
  • UPDATE or DELETE affecting multiple rows triggers a warning
  • UPDATE affecting 0 rows rolls back that row's changes
  • Refreshing the query with unsaved changes prompts for confirmation
  • Auto save preference is persisted in user settings

The status bar at the bottom shows success, warning, and error messages plus the last executed SQL script. A loading indicator appears during query execution.

Grid Operations

OperationDescription
SortClick a column header to sort
Column filterOpen the filter dialog from the column header; Clear filters removes all
Copy / PasteCell-level copy and paste
UndoRevert a cell to its original value
Multi-select rowsClick row headers to select multiple rows for batch delete
Column widthDouble-click the column divider to auto-fit
Column filter dialog in Smart Update
Column header filter with Clear filters

Scripts & Context Menu

Basic operations

  • Copy
  • Paste
  • Delete
  • Undo
  • Save

Generate values

  • Generate GUID
  • Generate Today (current date)
Right-click cell to generate GUID in Smart Update
Generate GUID from the cell context menu

SQL Scripts submenu

  • Generate WHERE
  • Copy as IN / NOT IN / VALUES
  • Script INSERT, UPDATE, DELETE, MERGE

Generated SQL is copied to the clipboard. The status bar shows the last executed script.

Smart Bulk SQL Overview

Smart Bulk SQL batch executes multiple .sql script files against a SQL Server connection. Queue files or folders, run them sequentially or concurrently, schedule one-time jobs, and review execution history — without opening each script manually in SSMS.

How to open Smart Bulk SQL

Entry pointBehavior
Tools → Smart Bulk SQL...Opens the batch execution window
Smart Bulk SQL main window with file queue and execution progress
File queue, concurrent settings, and live per-file status

Smart Bulk SQL vs other modules

Smart ExportSmart UpdateSmart Bulk SQL
Primary useExport query resultsEdit query resultsRun .sql script files
InputSQL in editorSELECT queryFiles on disk
OutputExcel, HTML, CSV, imageDatabase writesExecution log & history

Batch Execution

Building a queue

  • Add Files — select one or more .sql files
  • Add Folder — import every .sql file from a directory
  • Remove — delete selected files from the queue
  • Up / Down — reorder execution sequence
  • Clear — remove all files from the queue

Execution settings

SettingDescription
ConnectionTarget SQL Server connection — must be connected before Execute
ConcurrentWhen enabled, runs multiple scripts in parallel (configurable count)
Error policyContinue all — keep running remaining scripts if one fails

Running and monitoring

  • Execute Now — start batch execution immediately
  • Stop — halt the current run
  • Save Session — persist the file queue and settings for later
  • Per-file Status column shows Success or Failed with progress percentage
  • Summary bar reports total succeeded and failed counts

Schedule & history

Switch to the Schedule tab to create a one-time scheduled run with a name, date, and time. Use Save Schedule to persist it.

Smart Bulk SQL schedule history with session summary and per-file error details
Schedule History — session log with rows, duration, and error messages

History details

  • Top grid — past sessions with start time, connection, success/failed counts
  • Bottom grid — per-file results for the selected session: rows affected, duration, errors
  • Failed scripts show the SQL Server error message (e.g. constraint violations)

Export Interface Layout

Smart Export main interface layout
Main window — connection bar, SQL editor, toolbar, export settings, and result preview
Collapsible export settings panel
Export settings panel can be shown or hidden

Database Connections

SSMS mode

  • Lists database connections already open in SSMS
  • Reuses the connection from the current query window
  • Shows a connection status badge (connected / disconnected)
Connection selector dropdown in SSMS mode

Desktop mode

  • Save and manage multiple connections
  • Choose Enter connection string... to type a connection string manually
  • Local servers default to Windows authentication; remote servers can use SQL Server authentication
Manual connection string entry

File upload mode

  • Select Upload Excel/Csv/Html... from the connection dropdown
  • Load local files into the preview grid without a database
  • Export directly after import — Execute is disabled in file mode
Upload Excel CSV or HTML file option

SQL Editor

FeatureDescription
Syntax highlightingSQL keywords, strings, and expressions are color-coded
Line numbersLine number gutter on the left
IntelliSenseKeywords, tables, columns, and expressions (requires active connection)
Format SQLRight-click → Format SQL; formats selection if text is selected
F5 shortcutExecute the query
Auto-fillOpens with SQL from the SSMS query window when launched from SSMS
HTML table pastePaste an HTML table and Execute to parse it as data
Paste HTML table into SQL editor
Paste HTML tables directly into the editor

Execute & Preview

  • Click Execute to run SQL and load results into the preview grid
  • Preview supports up to 500,000 rows (warning shown if exceeded)
  • After column filters, up to 100,000 matching rows are shown
  • Large result sets load incrementally with a loading indicator
  • Non-SELECT statements show a confirmation prompt before running
  • Column header filters, drag-to-reorder columns, and drag-down on a header to remove a column from export
Column header filter
Column filters
Click header to sort
Click to sort
Drag column headers to reorder
Drag to reorder
Drag header down to remove column
Drag down to remove column

Export Formats

Button / MenuFormatNotes
ExportExcel (.xlsx)Primary output with full styling support
Right-click → Export CSVCSVUTF-8 with BOM
To HtmlHTMLStyled table output
To ImageImageTable screenshot export

Current export settings and style template are applied before every export.

Excel export result
Excel
HTML export result
HTML
Image export result
Image

Style Presets

Seven built-in presets plus None and Custom:

  • Modern Teal (default)
  • Classic Blue
  • Professional Gray
  • Corporate Navy
  • Forest Green
  • Warm Orange
  • Minimal Dark
  • None — plain data, no styling
  • Custom — automatically selected after manual changes

Customizable options

  • Header font size, color, background, bold
  • Zebra striping and alternating row colors
  • Freeze header row
  • Excel header filter
  • Column width: AutoFit / MaxWidth
  • Row height: AutoFit / MaxHeight
Style preset settings
Live style preview panel
Live preview on the right
Exported table with style applied
Styled export output

Data Formatting

Column types are formatted consistently on export:

TypeFormat options
Bit (boolean)True/False, YES/NO, Y/N, or custom
Dateyyyy-MM-dd, MM/dd/yyyy, dd/MM/yyyy, and more
DateTimeDate + time, 12-hour, date-only, and more
DecimalGeneral, integer, two decimals, thousands separator, percentage, and more

All types support a Custom Excel format string.

Bit format settings
Bit
DateTime format settings
DateTime
Decimal format settings
Decimal

Export Templates

  • Built-in Default template — cannot be deleted
  • Save As... saves all current export settings (style, formats, masking rules, etc.)
  • Option to include the SQL statement in the saved template
  • Rename or delete user-created templates
  • Remembers the last used template automatically
  • Ideal for recurring reports — configure once, reuse every time

Column Mapping

  • Map query result column names to export and script column names
  • Spaces are removed from column names by default
  • Mapped names are used for INSERT, UPDATE, DELETE, and MERGE script generation
  • Mapping rules can be saved in export templates

Data Masking

  • Toggle Enable Data Masking to apply rules on preview and export
  • Configure masking per column
  • Built-in formats: Keep First/Last, Full, Phone, IdCard, Email, Name
  • Custom rules supported (e.g. 3;4;* meaning keep 3 chars, mask 4, show rest)
  • Preview grid shows masked values in real time
Data masking configuration per column

File Import

Supported formats: .xlsx, .xlsm, .csv, .html, .htm

How to import

  • Select Upload Excel/Csv/Html... from the connection dropdown, or
  • Paste an HTML table into the SQL editor and click Execute

Append hyperlink — when importing Excel or HTML, optionally preserve or append hyperlink columns.

After import, the tool enters file mode: Execute is disabled; use Export directly.

Export Context Menu

Select & copy

  • Select All, Copy cell, Copy Column Names
  • Copy as Markdown, JSON, Excel, or CSV
Copy as Markdown
Copy as JSON
Copy as Excel
Copy as IN clause
Copy as NOT IN clause

SQL scripts

  • Generate WHERE
  • Copy as IN / NOT IN / VALUES
  • Script INSERT, UPDATE, DELETE, MERGE
Generate WHERE clause from selection

Export & email

  • Export Excel, CSV, HTML, or Image for selected cells only
  • Email to — send selected content
  • Email table to — send the full table as HTML email
Export selected cells

Hyperlinks & email shortcuts

Double-click hyperlink to open site
Double-click to open email client
Double-click HTML to open in browser

SQL History

  • Automatically records executed SQL (up to 300 entries)
  • Search and filter by favorites
  • Right-click: Run Again, Load to Editor, favorite/unfavorite, delete
  • Double-click an entry to load it quickly
  • Stored in your user profile — survives reinstall if files are preserved
SQL history and favorites panel

Email

  • Email to — sends selected cell content
  • Email table to — sends the full result table as an HTML email body
  • Opens a .eml draft or uses Outlook if already running
Email selected content
Email full table as HTML

Licensing

ItemDetails
Trial15-day full-feature trial
Paid licenseAnnual license (365 days) or Lifetime
ActivationMenu → Activate License... — enter transaction ID and key (SE-XXXX-XXXX-XXXX-XXXX-XXXX)
Machine bindingLicense is bound to the current computer
Trial expiredSmart Export: read-only preview, export disabled. Smart Update: view only, editing disabled
Offline graceUp to 30 days offline; online validation recommended every 7 days

See pricing for plan details.

Data & Config Storage

Settings are stored in your user AppData folder under SQLToExcel:

FileContents
sql-history.xmlSQL execution history
export-templates.xmlSaved export templates
export-style.xmlStyle settings
license.stateLicense status
desktop-connections.xmlDesktop edition connections (desktop only)

The installer can preserve these files on uninstall/reinstall.

Desktop Edition

The standalone Smart Export desktop app provides the same main interface as the SSMS extension. Smart Update is available as a separate tab with the same SmartUpdateControl. The menu includes Activate License and About. Connection management and manual connection strings are available in desktop mode.

FAQ

Smart Export window fails to open?

Restart SSMS and try again.

Connection list is empty?

Connect to a database in SSMS first. In desktop mode, add a connection or enter a connection string manually.

Export button is grayed out or asks for activation?

Your trial has ended. Activate a license to continue exporting.

Large queries are slow?

Preview is capped at 500,000 rows. Export reads the full result set — add WHERE clauses or export in batches.

How is this different from SSMS Save Results As?

Smart Export adds style templates, masking, column mapping, multi-format export, SQL script tools, history, and email — all in one integrated workflow.

Why can't I edit rows in Smart Update?

Check that your license is active, the query targets a single updatable table (not a view), primary keys are in the result set, and the row count is 10,000 or fewer.

Can I use JOINs in Smart Update?

You can SELECT with JOINs for viewing, but only columns from the target updatable table are editable. Columns from joined tables are read-only.

What happens if UPDATE affects zero rows?

Smart Update rolls back that row's modifications and shows a warning in the status bar — typically caused by another session changing the row first.

Support

Questions or issues? Email 344028991@qq.com.

New to Smart Export? Download the installer to get started.