Viewing 15 posts - 76 through 90 (of 130 total)
mister.magoo (10/11/2012)
And the statistics???
MM,
I updated last post with attachments now.
Thanks
October 11, 2012 at 10:12 am
mister.magoo (10/11/2012)
Can you produce a plan from an actual execution please?
And also include SET STATISTICS_TIME...
October 11, 2012 at 10:05 am
bteraberry (10/2/2012)
declare @b-2 bigint = 31;
declare @out varbinary(128)...
October 11, 2012 at 9:56 am
mister.magoo (10/11/2012)
haiao2000 (10/10/2012)
I really appreciate that you spend time write up this great post. I am still trying to understand how your code works myself :-).
The part I don't understand...
October 11, 2012 at 7:50 am
ChrisM@home (10/11/2012)
haiao2000 (10/10/2012)
whatelse could i do to make this query perform better. this thing runs for about 20seconds on the table that contains more than 10 millions of records, which...
October 11, 2012 at 7:38 am
Jeff Moden (10/10/2012)
October 10, 2012 at 9:20 pm
mister.magoo (10/10/2012)
The outline of the logic is to replace the recusive cte with a...
October 10, 2012 at 7:14 pm
XMLSQLNinja (10/10/2012)
haiao2000 (10/10/2012)
XMLSQLNinja (10/10/2012)
From what I see you could make this faster using the Local Updateable Variable approach (e.g. the 'Quirky Update')... See
October 10, 2012 at 4:01 pm
XMLSQLNinja (10/10/2012)
You should post the actual DDL.From what I see you could make this faster using the Local Updateable Variable approach (e.g. the 'Quirky Update')... See http://www.sqlservercentral.com/articles/T-SQL/68467/
Alen,
I...
October 10, 2012 at 3:33 pm
Look like I figured out the way to calculate Materialized path programatically, the issue I am dealing with now is how to handle objects that have more than one parents.
ALTER...
October 9, 2012 at 8:21 am
Jeff Moden (10/8/2012)
1. How often is the hierarchy updated? ---anser: It can be very often, daily, weekly
2. How many total nodes are in the...
October 8, 2012 at 9:13 pm
Jeff Moden (10/8/2012)
haiao2000 (10/4/2012)
Mark-101232 (10/9/2007)
Try thisDECLARE @RootID INT
SET @RootID=12;
WITH CTE AS(
SELECT GroupID,ParentGroupID
FROM AframeGroup
WHERE ParentGroupID=@RootID
UNION ALL
SELECT a.GroupID,a.ParentGroupID
FROM AframeGroup a
INNER JOIN CTE c ON c.GroupID=a.ParentGroupID)
SELECT GroupID
FROM CTE
ORDER BY GroupID
Eventually I run into...
October 8, 2012 at 2:00 pm
Sean Lange (10/4/2012)
haiao2000 (10/4/2012)
Eventually I run into performance issue when number records being so large. Could you suggest another method of doing tree drill down?
Thanks!
You do realize this thread is...
October 5, 2012 at 9:38 am
haiao2000 (10/4/2012)
raghavender.2369 (10/4/2012)
my friend said it is possible to store date in this...
October 4, 2012 at 2:50 pm
raghavender.2369 (10/4/2012)
my friend said it is possible to store date in this way...
October 4, 2012 at 2:40 pm
Viewing 15 posts - 76 through 90 (of 130 total)