Viewing 15 posts - 3,121 through 3,135 (of 5,502 total)
Ram:) (7/16/2010)
Hi Everyone,As per my knowledge, XML is case sensitive.
The following may result null value..
Correct me if i am wrong
...
You're right, as already explained a few posts back.
July 17, 2010 at 2:06 am
Here's the approach I would use.
Please note that I had to add an identity column to the source table just like David suggested. In my first reply I assumed the...
July 16, 2010 at 3:08 pm
If you start using one of the ideas posted in the challenge I referred to and you get stuck, let us know what you're struggling with and I'm sure there...
July 16, 2010 at 2:55 pm
If you would post the execution plans for both queries it would help us a lot to see what changes need to be made to tune the code. 3 seconds...
July 16, 2010 at 10:58 am
singhbharat321 (7/16/2010)
Thanks for the good suggestion!!!!can you write the query for that scenario.i will be very happy if you do for me.ThanksRegards
Bharat
Please provide table def, sample data and...
July 16, 2010 at 10:52 am
Why would you do such formatting server side and not client side? Stuff like this usually should be done by the frontend app.
But if you're forced to do it, look...
July 16, 2010 at 10:13 am
Hmmm...
It doesn't really make sense to populate a separate table just to exclude 40 rows...
I usually use table variables to populate sample data when answering a forum question since one...
July 16, 2010 at 9:58 am
caseyo (7/15/2010)
I did not consider to normalize and properly index your tblResults table. I'll have to look up tomorrow on how to do that. I'll also submit the...
July 15, 2010 at 4:24 pm
duplicate / misplaced post.
Plese continue discussion here.
July 15, 2010 at 4:14 pm
I'd rather use
SELECT vague_stuff,
((ROW_NUMBER() OVER (ORDER BY something)-1) / 50 + 1 ) AS box_nbr
FROM NamelessFoobar;
Otherwise your...
July 15, 2010 at 4:10 pm
You might want to start with the UNPIVOT statement (see BOL aka BooksOnLine, the SQL Server help sytem for details).
As a next step you should have a look at the...
July 15, 2010 at 4:01 pm
It depends on your table design.
Here's a rather simple example using the sample data you provided:
DECLARE @tbl TABLE
(
article_id INT,
received INT,
age INT
)
INSERT INTO @tbl
SELECT 1,30 ,...
July 15, 2010 at 3:56 pm
Since you're dealing with a typed xml document, you'd need to declare the namespace(s) defined within that document:
;WITH xmlnamespaces(
DEFAULT 'http://www.portalfiscal.inf.br/nfe'
)
SELECT
R.Node.value('(natOp/text())[1]','varchar(100)') AS natOp,
R.Node.value('(cNF/text())[1]','varchar(100)') AS cNF
FROM @XML.nodes('//././ide') R(Node);
July 15, 2010 at 3:45 pm
caseyo (7/15/2010)
This was exactly what I was needing. I modified...
July 15, 2010 at 3:40 pm
Based on your sample data I would use the following concept.
Unfortunately, I was unable to run your original query since there are tables and functions missing. So I had to...
July 15, 2010 at 3:03 pm
Viewing 15 posts - 3,121 through 3,135 (of 5,502 total)