Viewing 15 posts - 1,336 through 1,350 (of 1,999 total)
to be clear - do you have an index on sourceid in t1?
it might be wise to take a snapshot of the query plan and post it up here
April 25, 2012 at 3:07 am
david.alcock (4/25/2012)
April 25, 2012 at 3:04 am
csarsonas (4/25/2012)
April 25, 2012 at 2:22 am
also is DRID a foreign key? - it looks like it to me - why is it nullable? is there a foreign key constraint on it? - i'd definatly look...
April 25, 2012 at 1:49 am
no indexes on drsumtemp then ? - you said 600k rows.... i'm guessing the correct indexes will make a difference
April 25, 2012 at 1:47 am
sean's solution proboably performs better than mine
April 24, 2012 at 9:49 am
even better, i formatted it as you wanted
select l.name,test.testdate from tests
inner join
(
select locid,max(testdate) as md from tests
group by locid
) as lf
on lf.locid=tests.locid and lf.md=tests.testdate
inner join location l on l.locid=tests.locid
where...
April 24, 2012 at 9:40 am
select tests.* from tests
inner join
(
select locid,max(testdate) as md from tests
group by locid
) as lf
on lf.locid=tests.locid and lf.md=tests.testdate
where pfreal<0.7
April 24, 2012 at 9:36 am
somebody forgot to close and deallocate their cursor!! 😛
April 24, 2012 at 9:30 am
Single user on a particular module will have an estimation of 4-5 sec data retrieval (stored procedure was used to retrieve data). row count of the table is 600,000+ records...
April 24, 2012 at 9:18 am
this looks like an ideal candidate for redesigning the tables into a single and using range partitioning for each month
April 24, 2012 at 8:26 am
the output of your procedure is in a dataset. it is management studio that chooses how to display this.
the only way for management studio to display it how you want...
April 24, 2012 at 8:22 am
there there a trigger on the target table ?
April 24, 2012 at 7:52 am
in the original suggestion it was stated to use a raid 1 (mirror) for the C and D drives - but this would mean your d: drive that takes the...
April 24, 2012 at 7:48 am
are you replicating triggers as well?
the PK violations could be caused by a trigger at the subscriber.
if not then have a look at xp_replcmds and related extended stored procs (i...
June 15, 2011 at 7:54 am
Viewing 15 posts - 1,336 through 1,350 (of 1,999 total)