Viewing 15 posts - 5,056 through 5,070 (of 5,504 total)
Now I'm totally lost....
Why don't you use one or any combination of the tags within the OrderDocumentRequest element, like caseId(2923029), partitionCode (ADK), BatchNumber (3012578260) or tag(TadID)?
It's really hard to guess...
August 17, 2009 at 4:11 pm
something like SELECT newid() AS ID,
Breq.value('caseId[1]','varchar(200)') AS [caseID],
Doc.value('Name[1]', 'varchar(200)') AS [Name],
Doc.value('Value[1]', 'varchar(max)') AS [Value]
FROM @xml.nodes('/OrderDocumentBatch/OrderDocumentRequest') AS B(Breq)
...
August 17, 2009 at 3:22 pm
triple post.
Further discussion here.
August 17, 2009 at 3:12 pm
triple post.
Further discussion here.
August 17, 2009 at 3:11 pm
Now it gets confusing... :ermm:
Your sample data do contain the tag [caseID], which can be used to differentiate between each [orderdocumentrequest].
If that's not the case, you still could use all...
August 17, 2009 at 2:51 pm
Try the following code. It's based on your sample with two minor changes:
First, I made it case sensitive to match your sample data and secondly, I added the caseID, assuming...
August 17, 2009 at 2:14 pm
Just a few thoughts on the issue:
1) Like Barry advised, you should think about the process and the purpose of the data again. What data are part of the scan...
August 17, 2009 at 1:38 pm
The first question that comes into my mind when reading the requirement:
What is the business requirement of adding a NEWID to an xml variable using SQL server and leave it...
August 17, 2009 at 12:54 pm
Please search for "PIVOT" or "CROSS TAB" on this site.
You'll find a number of posts where at least one should answer your question.
You could also go directly to one of...
August 17, 2009 at 12:32 pm
A few more things to add:
#1) I forgot to thank you for the way you've provided sample data and that you took the time to dive into the solution I...
August 17, 2009 at 10:04 am
kramaswamy (8/17/2009)
What you're essentially doing is, getting a total of the subscribers on a monthly basis, and then, using the results stored...
August 17, 2009 at 9:27 am
I assume you have something like a calendar table...
If not, I've included a calendar (CTE_calendar) in the code below.
Also, please note that I've used a temp table with a PK...
August 17, 2009 at 7:22 am
Please take the time to help us help you.
In order to get a solution to the problem you described some of us like to have ready to use data (including...
August 17, 2009 at 5:46 am
Basically, there are two ways for this common requirement:
one is the PIVOT function (see BOL = BooksOnLine, the SQL help system, for details) and the other option uses the...
August 17, 2009 at 2:01 am
Viewing 15 posts - 5,056 through 5,070 (of 5,504 total)