Update XML data in SQL
When I executed the above logic I got the following error:Conversion failed when converting the nvarchar value 'Day(s)' to data type int. Could you please elaborate a bit? The sample works fine on my...
View ArticleUpdate XML data in SQL
Thanks for the feedback Bob!I would like to use this method, it seems cleaner but when I tried it compared to my previous query I did not get concistant results. Please see my examples below.SELECT...
View ArticleUpdate XML data in SQL
Use XML data-type method exist in the WHERE clause. It's more efficient and avoids this problem completely:update @t set col2.modify('replace value of (ReportParams/Param[@Name="GeoID"]/text())[1]...
View ArticleUpdate XML data in SQL
Thank you for your help Jian!I had to make one small adjustment and wanted your opinion on it.When I executed the above logic I got the following error:Conversion failed when converting the nvarchar...
View ArticleUpdate XML data in SQL
Hi Tim,Please refer to the following sample:declare @t table (col1 int,col2 xml)insertinto @t values (1,'<ReportParams><Param Name="EntityID">101</Param><Param...
View ArticleUpdate XML data in SQL
Run this to see if it works for you .... declare @ta table(id int, cxml xml) declare @temp xml set @temp = '<ReportParams><Param Name="EntityID">103</Param><Param...
View ArticleUpdate XML data in SQL
Is there an easy quick way to update an xml value based on the contents of that value....?From my research so far this seems to be much more involved then I expected it to be.Here is my...
View Article
More Pages to Explore .....