sqlcmd on Azure SQL Data Warehouse - SqlState 24000, Invalid cursor state after INSERT statement
问题 I am working on a script to reload a table using SQLCMD on Linux connecting to an Azure SQL Data Warehouse database. After the INSERT statement completes, the next statement fails (but does not end the sqlcmd execution) with the "warning" insert into schema.table_temp ( ...list of columns ) select ...list of columns from schema.table ; GO (COMMENT--> in script, but not echoed in log.) (0 rows affected) IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES t WHERE TABLE_TYPE = 'BASE