Declaring XML output parameters with ADODB in ASP Classic

﹥>﹥吖頭↗ 提交于 2019-12-25 04:51:57

问题


I'm working with an ASP Classic legacy code base attempting to call an existing SQL Server stored procedure that declares output parameters with an XML data type.

However, every time I try to execute the stored proc I get this error:

0x80040e14 - Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC SQL Server Driver][SQL Server]Implicit conversion from data type xml to varchar is not allowed. Use the CONVERT function to run this query.

I've experimented with a list of ADODB types, trying to find one that works, and haven't had any luck. I've also grepped our legacy code base for examples of other stored procs with xml output parameters being called, but wasn't able to find any.

Is there a way around this without updating the stored procedure to not use an XML type for its output parameter? For example, could it be possible to declare a null output parameter type or just ignore this parameter?

Thanks for any suggestions.

来源:https://stackoverflow.com/questions/19099334/declaring-xml-output-parameters-with-adodb-in-asp-classic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!