从powershell调用SQLCommand.ExecuteReader()时出现奇怪错误
调用从powershell调用SQLCommand.ExecuteReader()时出现奇怪错误,sql,powershell,ado.net,sqlcommand,Sql,Powershell,Ado.net,Sqlcommand,调用SqlCommand.ExecuteReader()时,下面的Powershell错误是什么意思 System.Management.Automation.ValidationMetadataException: 参数“+”不属于该集 指定了“unicode、utf7、utf8、utf32、ascii、双字节unicode、默认值、oem” 通过ValidateSet属性。提供集合中的参数 然后重试该命令。在 System.Management.Automation.ValidateStat
SqlCommand.ExecuteReader()
时,下面的Powershell错误是什么意思
System.Management.Automation.ValidationMetadataException:
参数“+”不属于该集
指定了“unicode、utf7、utf8、utf32、ascii、双字节unicode、默认值、oem”
通过ValidateSet属性。提供集合中的参数
然后重试该命令。在
System.Management.Automation.ValidateStatAttribute.ValidateElement(对象
元素)在
System.Management.Automation.ValidateEnumeratedArgumentsAttribute.Validate(对象
参数,EngineInTrensics EngineInTrensics)位于
系统。管理。自动化。参数BinderBase。BindParameter(CommandParameterInternal
参数,compiledCommandParameterMetaData,
参数BindingFlags(标记)
(立即回答;我只是想分享我的调试经验,因为我找不到它)查询文本包含一个“GO”语句。存在某种安全过滤,这被认为是一个编码问题 如果这种事情再次发生,我或整个宇宙都可以参考一下。在我生命中的四个小时里,我希望我能用谷歌搜索