Viewing 15 posts - 16 through 30 (of 57 total)
This sort of changes i always do with T-SQL. The GUI s*cks and does things you don't want to do most of the time.....
(just my humble opinion ofcourse)
January 22, 2010 at 5:37 am
GilaMonster (12/14/2009)
Do you have autoshrink on? Are you doing a manual database shrink after the index rebuild?
I thought autoshrink was off, but it seems to be on :ermm:
Edit: After turning...
December 14, 2009 at 10:05 am
Paul White (11/10/2009)
November 10, 2009 at 2:42 am
I've executed the query again and included the actual executionplan. I also tried it with MAXDOP, but it failed with an "out of memory" exception, so therefore i inserted the...
November 10, 2009 at 2:32 am
Here is a query that took 5 minutes, it returns a little over 5 million records. I also included the execution plan and a screenshot of the activitymonitor. The average...
November 10, 2009 at 12:24 am
Hey, hey ... no offence meant !
no offence taken 😉
Thanks for your advice here:-)
November 9, 2009 at 12:20 am
GilaMonster (11/8/2009)
November 9, 2009 at 12:07 am
Florian Reischl (3/25/2009)
Try this:
SET NOCOUNT ON
DECLARE @History TABLE (
ID int identity(1,1)
, IDStatus int
, IDItem int
, DateCreated datetime)
INSERT INTO @History (IDStatus, IDItem, DateCreated)
...
March 26, 2009 at 12:10 am
Ramesh (2/19/2009)
SELECTi.Name, ISNULL(s.Date, k.Date), s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3
FROM#items i
LEFT JOIN #Stats s
FULL JOIN #KPIs k ON k.ItemID = s.ItemID...
February 19, 2009 at 3:00 am
Ramesh (2/18/2009)
SELECTi.Name, s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3
FROMItems i
INNER JOIN
(
SELECTISNULL( s.IDItem, k.IDItem ) AS IDItem,
s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3
FROM[STATISTICS] s
FULL OUTER JOIN KPIs k ON s.IDItem =...
February 18, 2009 at 10:48 am
If have tested it.... and indeed: it doesn't work
The testcase :
create table #Stats (
ID int identity primary key,
ItemID int,
Date smalldatetime,
Stat1 float,
Stat2 float,
Stat3 float);
create table #KPIs (
ID int identity primary...
February 18, 2009 at 10:42 am
Ramesh (2/18/2009)
SELECTi.Name, s.stat1, s.stat2,...
February 18, 2009 at 10:30 am
Ramesh (2/18/2009)
SELECTi.Name, s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3
FROMItems i
INNER JOIN
(
SELECTISNULL( s.IDItem, k.IDItem ) AS IDItem,
s.stat1, s.stat2, s.stat3, k.kpi1, k.kpi2, k.kpi3
FROM[STATISTICS] s
FULL OUTER JOIN KPIs k ON s.IDItem =...
February 18, 2009 at 8:24 am
The total calculation works now, but now i'm comming to the history screens and again i'm running into a problem (i'm feeling quite dumb that i can't figure this out...
February 18, 2009 at 7:45 am
Viewing 15 posts - 16 through 30 (of 57 total)