SQL Prompt 11

Explain SQL with AI

Contents

AI explain selected text

If you have a portion of T-SQL selected in your active query editor window, you will also be able to press the Explain SQL  button, which will automatically get Prompt AI to generate an explanation.

The explanation will be provided directly in the Prompt AI window and will be aware of current database context (e.g. schema, SQL Server version).

The whole or a selection of the results can be copy/pasted as needed:

T-SQL and database AI inquiries

You can also directly ask Prompt AI to provide answers to general (T-)SQL and database questions, without relying on the current active script.

For example, What are the main SQL statements?

This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved


Didn't find what you were looking for?