MI001

Table variable is declared but never used

A table variable is declared but never used.

Also, clean code -- without unnecessary and unused parameters, variables, and values -- greatly simplifies the complex task of managing large SQL projects and databases.

Available in

SQL Prompt

SQL Code Guard


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?