Viewing 15 posts - 16 through 30 (of 140 total)
Hi, the reason why the xml is changing when you add the additional predicate is because the sub query is only returning a single record (item) for each account rather...
July 7, 2014 at 12:55 pm
I'm probably not quite understanding what you need to achieve, but if you are looking for an <employeeEntry> based on a known attribute, like the ID or name for example,...
July 1, 2014 at 12:49 pm
rhythmk (5/22/2014)
However I think version of SQL server should be mentioned in question as Remote maintenance plans can not be accessed by Log file Viewer in...
May 22, 2014 at 1:43 am
No problem.. thanks for the feedback! 🙂
May 21, 2014 at 4:07 am
What did you mean by the sort order being a problem? I thought that only affected the parsing of the underlying data set, not the order of the fields?
Sorry, ignore...
May 21, 2014 at 3:55 am
In fact, i've just seen your order by clause.. That is why the tag is being moved.
In any case, I generally avoid using EXPLICIT unless i have to generate...
May 20, 2014 at 1:05 pm
Hi. Yes path mode will give you a lot more control over the attributes and elements. You can specify the path of nodes as part of the column alias. Pretty...
May 20, 2014 at 12:57 pm
Interesting question. Although I feel that if you need to have line feeds/carriage returns in the dynamic SQL that you are constructing, I find it better to incorporate that into...
April 10, 2014 at 1:38 am
Richard Warr (4/7/2014)
April 7, 2014 at 3:40 am
Great quality question.. Content (and humour!) aside, the question itself actually made you think and apply logic to come up with the most likely correct answer (which we all have...
March 20, 2014 at 2:08 am
The xml is invalid... the closing tag character ("/") goes at the start of the name of the xml element unless it is empty in which can you can put...
March 1, 2014 at 12:09 am
Hi.. I would use something like the following. This is checking to see if the text node is empty or not in the predicate.:
set @xdata.modify('delete //step[empty(text())]')
February 28, 2014 at 10:02 am
Hi,
You can use the xml methods to shred the xml to a flat table but because the data is stored in a text column, this will need to be casted...
January 4, 2014 at 11:51 am
Hi,
If you want to use a stylesheet then your options are going to be limited if you want to keep it all inside sql. SSIS supports xsl transformations via the...
January 3, 2014 at 9:46 am
You can extract specific nodes by use the xml values() method. Additionally, because the data that you have is using a namespace, you also in this instance need to declare...
December 23, 2013 at 2:15 am
Viewing 15 posts - 16 through 30 (of 140 total)