Viewing 15 posts - 1,726 through 1,740 (of 2,458 total)
To get help faster include some DDL (note the link in my signature).
In the meantime I would suggest that you avoid using ORDER BY <number> and use ORDER BY <column...
-- Itzik Ben-Gan 2001
March 11, 2015 at 11:16 am
I don't really understand your question and could not help you without any DDL.
That said, note the XML below. I created two variables, the first with the old XML...
-- Itzik Ben-Gan 2001
March 11, 2015 at 10:49 am
dschubel (3/6/2015)
-- Itzik Ben-Gan 2001
March 6, 2015 at 11:03 am
mister.magoo (3/5/2015)
Alan.B (3/5/2015)
Mr. Magoo... If you are out there perhaps you could chime in:w00t: you know much more about this than I do...
Wow, I appreciate the kind thought, but I...
-- Itzik Ben-Gan 2001
March 6, 2015 at 9:44 am
Jeff Moden (3/5/2015)
Alan.B (3/5/2015)
Chris, Jeff...If I understand the OP correctly, they could not solve this problem with ISNULL or COALESCE alone because of the awkward data type requirement.
Let's review...
-- Itzik Ben-Gan 2001
March 5, 2015 at 6:10 pm
Oh dang! It does not appear that makeparallel() will help you get a parallel plan here...
First, here's a little background on the function:
Some time ago Paul White wrote an amazing...
-- Itzik Ben-Gan 2001
March 5, 2015 at 4:07 pm
See these two articles by Jeff Moden:
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns[/url]
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs[/url]
-- Itzik Ben-Gan 2001
March 5, 2015 at 2:52 pm
No problem. I too have been there ripping my hair out on SQL-XML namespace issues. 😉
-- Itzik Ben-Gan 2001
March 5, 2015 at 2:37 pm
Itzek Ben-Gan has some clever SQL Server 2012 and non-2012 solutions for this type of problem in his book, Microsoft® SQL Server® 2012 High-Performance T-SQL Using Window Functions
I have not...
-- Itzik Ben-Gan 2001
March 5, 2015 at 2:36 pm
The query optimizer does not always get it right but seems to correct more often that not provided that your system is configured correctly. MAXDOP(0) won't do anything for you...
-- Itzik Ben-Gan 2001
March 5, 2015 at 2:26 pm
... and for a bonus answer. Because of the XML data structures/schemas I deal with I can get away with the lazy guy technique of "*:". This is not a...
-- Itzik Ben-Gan 2001
March 5, 2015 at 1:48 pm
First, welcome to SSC! The sample data you provided was very helpful. In the future try to include some DDL to create the table you are working with. Today I...
-- Itzik Ben-Gan 2001
March 5, 2015 at 1:34 pm
To expand on what Nevyn said, they will only have access to Master.
-- Itzik Ben-Gan 2001
March 5, 2015 at 1:20 pm
Chris, Jeff...
If I understand the OP correctly, they could not solve this problem with ISNULL or COALESCE alone because of the awkward data type requirement.
Example:
DECLARE
@x1 varchar(10) = NULL,
@x2...
-- Itzik Ben-Gan 2001
March 5, 2015 at 1:06 pm
sureshjevani 78421 (3/5/2015)
-- Itzik Ben-Gan 2001
March 5, 2015 at 12:29 pm
Viewing 15 posts - 1,726 through 1,740 (of 2,458 total)