I am using SSMS Generate Scripts wizard to script the schema and data for few tables in my database. Somehow the end result will add "GO" after certain insert script.
Is there any way to prevent SSMS adding "GO" from the generated script?
Thanks,
I am using SSMS Generate Scripts wizard to script the schema and data for few tables in my database. Somehow the end result will add "GO" after certain insert script.
Is there any way to prevent SSMS adding "GO" from the generated script?
Thanks,
Option "Delimit individual statements" is available in General scripting options (Tools -- Options -- SQL Server Object Explorer -- Scripting). SSMS Options
I could not find the option but ended up using a powershell script to clean it up
(Get-Content -Path $fileName) | Where-Object { $_ -notlike 'GO' } | Set-Content -Path $fileName