0
我试图在SSIS中执行BCP将查询结果导出到CSV文件为几个不同的表。然而,由于某种原因,我不断收到解析错误,当我试图把下列参数为BCP EXEC:SSIS BCP执行与查询
"SELECT * from [email protected][User::Table] " queryout C:\users\MSSQLSERVER\Downloads\@[User::Table].csv -c -t, -T
当我与这些参数执行BCP(改变变量到现有的表名),一切正常。我试图删除参数的几个部分,我仍然得到以下错误
Attempt to parse the expression ""SELECT * from [email protected][User::Table] " queryout C:\users\MSSQLSERVER\Downloads\@[User::Table].csv -c -t, -T" failed. The expression might contain an invalid token, an incomplete token, or an invalid element. It might not be well-formed, or might be missing part of a required element such as a parenthesis.
我的论点有什么问题?