PowerStig icon indicating copy to clipboard operation
PowerStig copied to clipboard

SQL Server 2016 Instance STIG - SQL script with GO caused the execution error

Open pursca opened this issue 6 years ago • 0 comments

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

pursca avatar Aug 12 '19 22:08 pursca