TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amit Kumar Singh
398
4k
203.4k
Using Nodes() Method in Sql Server
Sep 22 2016 12:58 PM
DECLARE @xmlDataHandle INT
EXEC Sp_xml_preparedocument
@xmlDataHandle output,
@XmlSourceData
UPDATE source
SET status = Cast(_xmlPayment.xmlstatus AS BIT)
FROM OPENXML(@xmlDataHandle, '/Sources/Source', 2)
WITH( xmlstatus BIT '@status',
xmlid VARCHAR(50) '@id' )_xmlPayment
WHERE source.sourceid = Cast(_xmlPayment.xmlid AS INT)
EXEC Sp_xml_removedocument
@xmlDataHandle
SELECT '1'
Convert this query using Nodes() Method of Sql Server instead of Openxml
Reply
Answers (
1
)
To migrate sqlserver 2005 To 2016
Syntax to create store proc with transaction commit and roll