Declare @xmlDoc nvarchar(100)
Declare @handle int
SET @xmlDoc = N'
<students>
<StudentID> 100-252-1658</StudentID>
<StudentFName>S uresh</StudentFName>
<StudentLName>P rabhu</StudentLName>
</students>'
EXEC sp_xml_prepared ocument @handle OUTPUT, @xmlDoc
If i execute bold statement i am getting an error called
Msg 137, Level 15, State 2, Line 1
Must declare the scalar variable "@idoc".
Declare @handle int
SET @xmlDoc = N'
<students>
<StudentID> 100-252-1658</StudentID>
<StudentFName>S uresh</StudentFName>
<StudentLName>P rabhu</StudentLName>
</students>'
EXEC sp_xml_prepared ocument @handle OUTPUT, @xmlDoc
If i execute bold statement i am getting an error called
Msg 137, Level 15, State 2, Line 1
Must declare the scalar variable "@idoc".
Comment