Viewing 15 posts - 4,171 through 4,185 (of 5,504 total)
Kit G (2/26/2010)
February 26, 2010 at 2:48 pm
Would you mind providing a test scenario so we have sometihng to play with? (table def, some sample data and your current query)
February 26, 2010 at 2:17 pm
Kit G (2/26/2010)
lmu92 (2/26/2010)
Is anybody able to tell me what he was...
February 26, 2010 at 2:15 pm
Running 100 or up to 200 times faster than Karthik's measurement indicates to me that there's something seriously wrong with his system.
I strongly recommend using profiler to figure out what's...
February 26, 2010 at 2:07 pm
Please post your query so we can help you to get the syntax right.
February 26, 2010 at 12:10 pm
Did you already study the two "main articles" on CrossTab and DynamicCrossTab? If not, please see the related links in my signature.
February 26, 2010 at 11:54 am
I'm not sure if it's because of my lacking language skills... but all I understood was CLOUDS ...
Is anybody able to tell me what he was talking about?
February 26, 2010 at 11:51 am
You could use SET STATISTICS XML ON before your query.
This will result in an XML execution plan.
Then query that xml file, e.g. for OutputList/@Column, Identifier a.s.o.
I'm not sure if there's...
February 26, 2010 at 11:29 am
A recursive cte will cause performance issues on larger data sets.
A common way to resolve this issue is the usage of FOR XML PATH.
Something like
SELECT [EnrolleeID],
STUFF(
(SELECT '-' + LanguageName...
February 26, 2010 at 11:17 am
Something like the following?
SELECT
U.v.value('txtApplicantName[1]', 'VARCHAR(30)') as a,
W.x.value('txtAcctNo[1]', 'VARCHAR(30)') as b,
W.x.value('OptInFlag[1]', 'VARCHAR(30)') as c
FROM @XML.nodes('xfadata/changeDebitCard') T(c)
CROSS APPLY
c.nodes('applicantInfo') U(v)
CROSS APPLY
c.nodes('posAccts') W(x)
February 26, 2010 at 10:57 am
That's my "wild-guessing-code" that might help you:
SELECT
c.value('TRANS_CODE[1]', 'VARCHAR(30)') AS Batches_col1
FROM @xml.nodes('//HEADER') t(c)
SELECT
c.value('CLIENT_SSN[1]', 'VARCHAR(30)') AS Clients_col1
FROM @xml.nodes('//RECORD') t(c)
SELECT
v.value ('@id[1]','VARCHAR(50)') AS Charges_col1,
y.value('local-name(.)', 'VARCHAR(50)') AS Charges_col2,
y.value('(.)', 'VARCHAR(50)') AS Charges_col3
FROM @xml.nodes('//RECORDS')...
February 26, 2010 at 9:55 am
I have to repeat my previous post:
Please provide more details. The best way would be to post ready to use sample data (including table def, sample data and expected result)....
February 26, 2010 at 4:05 am
Divya Agrawal (2/26/2010)
Your solution i have already used for less number of columns.
There are lots of columns around 100's in the table which i need to query. Case...
February 26, 2010 at 3:09 am
Viewing 15 posts - 4,171 through 4,185 (of 5,504 total)