Viewing 15 posts - 91 through 105 (of 140 total)
Here you go, here are two example queries querying an xml structure that has a namespace. The first query will actually include some auto generated prefixes by SQL, but the...
September 19, 2012 at 3:15 am
AFAIK you can't remove the namespace without doing some kind hack like casting the XML to a varchar(max) and then replacing out the namespace and any prefixes that it uses...
September 18, 2012 at 9:13 am
I think you may need to provide a little more information on what you are trying to do, sample code and what issues/errors that you are seeing. Showing an example...
September 14, 2012 at 5:19 am
I got the answer right but got the intention of the question wrong.
When I thought, can I get that script to run without changing it, my method to achieve this...
September 13, 2012 at 5:36 am
Nice.... I like that solution 🙂
September 12, 2012 at 5:36 am
The argument 1 of XML datatype method nodes must be string literal..plz help
This means that the argument that you are specifying within the nodes() function must be a string literal...
September 12, 2012 at 5:27 am
ok, without seeing more of the actual xml it is hard for me to comment on that.
However, have you seen this thread:
http://www.sqlservercentral.com/Forums/Topic1311855-21-1.aspx#bm1312389
I came up with this for someone who had...
September 10, 2012 at 9:02 am
Did you have a look at my previous reply regarding the function developed by jacob sebastian? That will shred an xml structure to a flat table similar to what you...
September 9, 2012 at 7:33 am
Try this revised query:
Declare @xml xml
Set @xml =
'<XML>
<Provider>
<providerID>1</providerID>
<Address>address1</Address>
</Provider>
<Provider>
<providerID>2</providerID>
<Address>address2</Address>
</Provider>...
September 9, 2012 at 6:34 am
I would use an XQuery flwor expression in your scenario. Here is an example to remodel the xml that you have provided and add the extra nodes to the xml...
September 7, 2012 at 1:02 pm
I sometimes use this function if I find myself in a similar situation where I need to shred an xml structure to a tabular form but do not know the...
September 7, 2012 at 1:18 am
Great question!... i kept counting 10 records until I realised that "Doug" would actually be eliminated from the apply.
Thanks.
September 6, 2012 at 1:09 am
Nice question, although i think the answers made it easier just through a process of elimination. 🙂
August 31, 2012 at 1:20 am
Viewing 15 posts - 91 through 105 (of 140 total)