Hi, I am reading through a plethora of articles at the moment to try to assist me.. just seems so many options and cannot seem to find a clean solution.. it probably is very basic so apologies in advance!
So I have an XML field in SQL 2008. It basically contains something like:
<root><id>1</id><id>4</id></root>
and so on...
What I am hoping to do is pass a param in to a proc to insert an value IF it doesn't exist..
So rather than read the xml first and do this within say .NET code, is there a clean way of doing this within a stored proc/t-sql ???
Any help appreciated! I am sure this is a fairly common one!