Viewing 15 posts - 1,636 through 1,650 (of 2,007 total)
miss.delinda (5/23/2011)
declare @tMenuCollection table(idx int,parentID int,menuNme varchar(50),navigateUrl varchar(50));
insert into @tMenuCollection values(1,0,'Bayar Zakat','void(0)');
insert into @tMenuCollection values(2,0,'Amil','void(0)');
insert into @tMenuCollection values(3,0,'Kira Zakat & Simpan','void(0)');
insert into @tMenuCollection values(4,3,'Tambah','void(0)');
insert into...
May 24, 2011 at 2:05 am
WayneS (5/23/2011)
How does this work out? Check out this BOL link for how it this recursive common-table-expression works.
I can't get your solution to work Wayne (which is irritating because mine...
May 23, 2011 at 8:48 am
Please read this link[/url] for how to best get answers to your questions.
If you set-up and post create table scripts plus sample data and expected results then you'll get back...
May 23, 2011 at 7:40 am
Plenty of different ways to do that. Here's two: -
--CTE Option
;WITH CTE AS (
SELECT CartesisRU, CartesisBU, HFMEntity, WBU,
ROW_NUMBER() OVER(partition by CartesisRU, CartesisBU ORDER BY CartesisRU, CartesisBU) AS rn
FROM #Cartesis_to_hfm)
SELECT b.CartesisRU,...
May 23, 2011 at 7:35 am
Ninja's_RGR'us (5/19/2011)
Time to track the guilty party! 😉
Not too difficult - there are two of us that work on the database servers and it wasn't me. . . 😀
May 19, 2011 at 10:15 am
We've solved our issue, it was a D'OH moment 😉
Basically, the code I posted above is an older version of what had been deployed to the server (must've been changed...
May 19, 2011 at 10:09 am
Ninja's_RGR'us (5/19/2011)
You can schedule it more than once... maybe every...
May 19, 2011 at 7:53 am
Ninja's_RGR'us (5/19/2011)
Run the log backups every 10 minutes (maybe even less).
I'm not sure that would solve the issue I'm having (I'm not saying it won't, just that I'm confused as...
May 19, 2011 at 7:46 am
;WITH highest_attendance AS (
SELECT subject, attendance,
ROW_NUMBER() OVER (ORDER BY attendance DESC) AS rn
FROM (SELECT 'math' AS subject, COUNT(math) AS attendance
FROM results
...
May 19, 2011 at 7:00 am
What sort of result are you after?
SELECT attendedMath, attendedPhysics, attendedChemistry
FROM (SELECT COUNT(math) AS attendedMath
FROM results
WHERE math <> 0)...
May 19, 2011 at 6:13 am
Ninja's_RGR'us (5/18/2011)
Still don't need the nolock there. The update is done and you'll be able to read from the table.
Had you written that the first time I wouldn't have...
May 18, 2011 at 9:43 am
Ninja's_RGR'us (5/18/2011)
May 18, 2011 at 8:42 am
ashok.faridabad1984 (5/18/2011)
logic to obtain the result is if the attrib is...
May 18, 2011 at 6:14 am
I think I'd go for two stored-procedure.
In your roll-out script, create the 2000 code in a stored-procedure if 2000 is detected. Then execute the 2000 stored-procedure that does your index...
May 18, 2011 at 5:43 am
--Sample data--
DECLARE @TABLE AS TABLE(id INT, attrib INT, begda VARCHAR(10), endda VARCHAR(10))
INSERT INTO @TABLE
SELECT 1, 100, '3/10/2010', '3/31/2010'
UNION ALL SELECT 1, 100, '4/1/2010', '4/10/2010'
UNION ALL SELECT 1, 2, '4/11/2010', '5/15/2010'
UNION...
May 18, 2011 at 5:36 am
Viewing 15 posts - 1,636 through 1,650 (of 2,007 total)