Viewing 15 posts - 76 through 90 (of 187 total)
Just an update, in case anyone else is reading this, I based my query upon the example in the link that Chris sent as follows:
with AllNodes (parent_id, child_id, level)
as
(
select parent_id,...
October 12, 2008 at 1:46 am
Hi Chris,
Ok, I'll have a read, thanks for your help.
Regards
David
October 9, 2008 at 3:17 am
I can't ever see it going beyond six levels if that helps!
October 9, 2008 at 2:40 am
Hi Chris,
The problem is that the number of levels is not fixed, for some members it could be two levels deep, for others three and for others one!
Thanks
David
October 9, 2008 at 2:27 am
Hi Chris,
Here is a sample script that will replicate a portion of my data:
CREATE TABLE #tblTMembers(
[CHILD_ID] [int] NOT NULL,
[PARENT_ID] [int] NULL
) ON [PRIMARY]
INSERT INTO #tblTMembers
...
October 9, 2008 at 2:17 am
Hi,
Does anyone have any suggestions, I'm still no further forward :crazy:
Is there anything new in SQL Server 2005 that can help?
Thanks
David
October 8, 2008 at 1:04 am
GilaMonster (9/18/2008)
When you get a deadlock graph, post it here and I'm sure someone will help you with it.
Hi Gail,
Here is the output in the ERRORLOG after turning the trace...
September 19, 2008 at 4:16 am
GilaMonster (9/18/2008)
Try switching whichever that one is off and switching 1222 on. It gives very nice, very detailed output. There's...
September 18, 2008 at 10:22 am
Hmmm...not sure about easy 😉
This deadlock is occurring on our live server and is related to a third party product so trying to recreate what the problem is will be...
September 18, 2008 at 10:21 am
Hi Reeth,
Thanks for the tip. The example you provided works perfectly!
Regards
David
August 13, 2008 at 6:36 am
Hi Mike,
Unfortunately, I cannot change the column type because it is a third party database. I tried the following:
select datepart(m,cast(convert(char(8),'11/08/08',103)as datetime))
but it still returns 11.
Thanks
August 13, 2008 at 6:15 am
Thanks Michael, that's what I was trying to achieve.
June 11, 2008 at 7:53 am
Hi Kent,
Thanks for your help, I've managed to get it work using the ROW_NUMBER and partition by clause.
June 11, 2008 at 6:58 am
Jeff/Matt,
Thanks for your help, I've decided to go down the Tally table route as it suits what I need with very little effort.
BTW Jeff, good article on Tally tables!
May 30, 2008 at 5:55 am
Viewing 15 posts - 76 through 90 (of 187 total)