terraform-provider-mssql icon indicating copy to clipboard operation
terraform-provider-mssql copied to clipboard

mssql_script fails when GO statement is used

Open ibuiltthis opened this issue 2 years ago • 2 comments

When creating a mssql_script resource that uses 'GO' in the script the resource fails to create.

The error is:

mssql_script.ecamap_setup: Creating...
╷
│ Error: Failed to execute SQL script
│
│   with mssql_script.ecamap_setup,
│   on 05_sql_database_setup.tf line 62, in resource "mssql_script" "setup":
│   62: resource "mssql_script" "setup" {
│
│ mssql: Incorrect syntax near 'GO'.
╵

Any help?

ibuiltthis avatar Mar 01 '23 05:03 ibuiltthis