I am reading a lot of articles at the moment to try to help me .. it just seems that there are so many options and it seems that it cannot find a clean solution. Perhaps this is very simple, so apologize in advance!
So, I have an XML field in SQL 2008. It basically contains something like:
<root><id>1</id><id>4</id></root> etc.
What I hope to do is pass the parameter to proc to insert the value if it does not exist.
So, instead of reading xml first and doing it in .NET code, is there a clean way to do this in saved proc / t-sql ???
Any help appreciated! I am sure this is quite common!
source
share