You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,8 +67,8 @@ Think of this script as an **evidence pack generator**. A strong LLM can then re
67
67
```sql
68
68
:SETVAR TargetDB "YourDatabaseName"
69
69
:SETVAR OutputDir "C:\Temp\DatabaseTuner\"-- directory must already exist
70
-
:SETVAR ExportSchema "0"-- 0 or 1
71
-
:SETVAR SafeMode "1"-- 0 or 1 (public script defaults to 1)
70
+
:SETVAR ExportSchema "1"-- 0 or 1 (1 as default)
71
+
:SETVAR SafeMode "1"-- 0 or 1 (1 as default)
72
72
```
73
73
74
74
5. Press **F5** to run the script.
@@ -96,21 +96,18 @@ These variables are defined at the top of the Database Tuner script.
96
96
- The directory must already exist. If it does not, `sqlcmd` falls back to printing the Markdown to STDOUT (for example the SSMS Messages tab).
97
97
98
98
-**`ExportSchema`**
99
-
-`0`(default) = do not append a schema appendix.
100
-
-`1` = append a schema export to the end of the report. This includes definitions for views, procedures, functions, triggers, tables, constraints, indexes, and more.
99
+
-`0` = do not append a schema appendix.
100
+
-`1`(default) = append a schema export to the end of the report. This includes definitions for views, procedures, functions, triggers, tables, constraints, indexes, and more.
101
101
- This can be very verbose and may include sensitive code. Prefer `0` when sharing externally unless you explicitly need schema context.
102
102
103
103
-**`SafeMode`**
104
104
-`0` = full detail.
105
-
-`1` = **Safe Mode ON**. Certain fields are redacted or gated and replaced with `[SafeMode]`. Examples include:
105
+
-`1`(default) = **Safe Mode ON**. Certain fields are redacted or gated and replaced with `[SafeMode]`. Examples include:
106
106
- Server and instance names.
107
107
- Host names and file system paths.
108
108
- Some job commands, mail profiles, credentials, and SQL text.
109
109
- Temp table schemas do not change; only values are masked. This makes it easier to share reports outside your organisation or with cloud-hosted LLMs.
110
110
111
-
-**`Version`**
112
-
- Free-form label used in the report header and file name (for example `"2.11"` or a date stamp).
113
-
114
111
These flags also appear in the report header and in the Assistant Brief so the LLM can see how the report was generated.
0 commit comments