Viewing 15 posts - 1,336 through 1,350 (of 1,995 total)
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
are you trying to purge the data completely or is it a selective delete?
and a really stupid question, but no-one has asked the obvious.
are you deleteing the data in the...
June 15, 2011 at 7:45 am
there are many ways you can do this
i often opt to save the Excel file as CSV and then use BULK INSERT
you could use SSIS packages
but by far the...
March 10, 2011 at 8:37 am
If you have a copy of REDGATE SQLCOMPARE you can use the API for this to compare each database to a "template database" you can then have it put...
November 22, 2010 at 4:05 am
99.9% of the time, I prefer dealing with those databases that use surrogate keys, be they 'Identity', 'GUID' or other. I find it much easier to find the links I...
October 26, 2010 at 2:20 am
Viewing 15 posts - 1,336 through 1,350 (of 1,995 total)