• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 438
  • Last Modified:

How to append parameter of xml type in asp(classic)

I need to send a parameter of type xml to a stored procedure on an asp(classic) page.
What is the DataTypeEnum Value for xml type?

This is the string to be sent:
"<StudyDataList><StudyData><StudyParID>931</StudyParID><TPID>2732</TPID><DataValue>1</DataValue></StudyData>
<StudyData><StudyParID>931</StudyParID><TPID>2733</TPID><DataValue>2</DataValue></StudyData>
<StudyData><StudyParID>931</StudyParID><TPID>2734</TPID><DataValue>3</DataValue></StudyData>
</StudyDataList>"

Thanks
0
ggilal
Asked:
ggilal
1 Solution
 
JoachimMartinsenCommented:
Theres no DataTypeEnum Value for XML. You would have to use the adLongVarChar (201) and then use e.g a regexp to check if it is "valid" XML.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now