PowerStig
PowerStig copied to clipboard
SQL Server 2016 Instance STIG - SQL script with GO caused the execution error
Describe the bug There are several SQL single line statement in the compiled MOF file contains the "GO" ... this caused the sql script failed to execute
To Reproduce Make a SQL 2016 configuration, compile and check the mof file, copy that sql statement to run in SSMS and it will fail
Expected behavior "GO" has to be in its own line or "GO" needs to be removed: reference: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/sql-server-utilities-statements-go?view=sql-server-2017
Screenshots
Additional context