Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Very Urgent . XML Audit Log

Author  Topic 

shaik.zakeer
Posting Yak Master

117 Posts

Posted - 2010-02-26 : 07:33:31
How can i compare two XML strings. Is there any simple method

Ex:

XML1:

<Employee>
<Id>1</Id>
<Name>xxx</Name>
<Marks1>70</Marks1>
<Marks2 />
</Employee>

XML2:

<Employee>
<Id>1</Id>
<Name>xxx</Name>
<Marks1>70</Marks1>
<Marks2>80</Marks2>
</Employee>

I wanna do auditlog for this. How can i do this.

Kindly help me.

Thanks

Jack

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-26 : 09:34:30
see

http://beyondrelational.com/blogs/jacob/archive/2008/09/14/xquery-lab-36-writing-a-tsql-function-to-compare-two-xml-values-part-2.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

shaik.zakeer
Posting Yak Master

117 Posts

Posted - 2010-03-08 : 11:05:23
Thanks man it helped me alot... :)

Thanks

Jack
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-08 : 11:20:28
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -