[英]Error occured usind sp_xml_removedocument
I have a stored procedure. 我有一个存储过程。 IN that stored procedure there is " SP_XML_PREPAREDOCUMENT and SP_XML_REMOVEDOCUMENT" .In that stored procedure iam passing two parameters one is in form of xml and another one in employeeId.
在该存储过程中,有“ SP_XML_PREPAREDOCUMENT和SP_XML_REMOVEDOCUMENT”。在该存储过程中,我传递了两个参数,一个是xml格式,另一个是employeeId。 while I Just edited xml creation function because i added two columns to the table.
而我刚刚编辑了xml创建函数,因为我在表中添加了两列。 then i execute stored procedure for inserting values i got error like this.I dont understand.
然后我执行存储过程来插入值我得到这样的错误。我不明白。 I dont never used SP_XML_PREPAREDOCUMENT and SP_XML_REMOVEDOCUMENT.Please Help me
我从未使用过SP_XML_PREPAREDOCUMENT和SP_XML_REMOVEDOCUMENT。请帮助我
The error description is 'Duplicate attribute.'.Could not find prepared statement with handle 0.sp_xml_removedocument:The value supplied for parameter number 1 is invalid.The statement has been terminated.
I guess you are getting this error because the handle has not been initialized when you are calling sp_xml_removedocument. 我猜您正在收到此错误,因为调用sp_xml_removedocument时尚未初始化句柄。 You may try a check like below to avoid the error:
您可以尝试如下检查以避免错误:
IF @iData IS NOT NULL
EXEC sp_xml_removedocument @iData
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.