Nimisha is a
Question Whiz
Recap 2024
Publications:
8questions
6comments
Top Post:
1,083
people reached
User bio
404 bio not found
Member since Nov 20, 2023
Replies:

Things have slightly changed from our side. 

  • initially used JSON to serialize data and pass it as a parameter to an INSERT statement. 
  • Recently, we switched to storing XML data instead of JSON, and I am now trying to store this XML using the stored procedure
set tQuery="{ CALL dbo.SavePatientDetails (?) }"

Set tSC = ..Adapter.ExecuteProcedure(.tResultSnapshots, .tOutputParms, tQuery,,xmlContent)

Problem:

  • Parameterized Query: Works fine when using VARCHAR(8000) as the parameter type in the stored procedure.
  • Fails when using NVARCHAR(MAX) as the parameter type for passing XML data. The issue appears only when using the NVARCHAR(MAX) type, and I am unable to insert the XML content.

Your input is greatly appreciated. Thanks in advance for your help!

Certifications & Credly badges:
Nimisha has no Certifications & Credly badges yet.
Global Masters badges:
Nimisha has no Global Masters badges yet.
Followers:
Nimisha has no followers yet.
Following: