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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Convert Varchar to Xml in Sql Server
Venkatesan Jayakantham
May 03, 2012
27.5
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
Convert Varchar to Xml in Sql Server
Here is a small code snippet to convert you varchar data to XML data
declare @data varchar(100) set @data ='
select convert(xml,@data)
The data will be converted into XML.
Cheers,
Venkatesan Prabu .J
Convert Varchar to Xml in Sql Server
Next Recommended Reading
Convert Data Table to XML in SQL Server