Works for me. Do you get an error?create table myStudent (student_id int, details_xml xml)insert myStudent select 1, '<root><a><b/></a></root>'goCREATE PROCEDURE USP_XML_TEST (@no int ,@var xml output)ASBEGINSET NOCOUNT ON;select @var = details_xml from myStudent where student_id = @noENDgodeclare @var xmlEXEC USP_XML_TEST 1, @var outputselect @var/* Output<root><a><b /></a></root>*/
Ryan Randall Solutions are easy. Understanding the problem, now, that's the hard part.