数据库引擎优化顾问 "Failed to parse XML file"

Database Engine Tuning Advisor "Failed to parse XML file"

在数据库引擎优化顾问中加载 .sql 文件时,您会得到 "Failed to parse XML file"

"Executing the DTA on the execute statement itself of the stored procedure, rather than the full 'Script to New Query Editor - Execute Stored Procedure' given by right clicking it."

来源:https://social.msdn.microsoft.com/Forums/sqlserver/en-US/4b9062b8-2f20-4028-8a94-e2166d41de5e/error-parsing-xml-in-database-engine-tuning-advisor?forum=sqldatabaseengine

删除查询末尾的“GO”(前提是它只是一个查询)。