Viewing 15 posts - 91 through 105 (of 197 total)
Ok, I have 2 ptEncounter records with the same MRN and DateOfService. 9 ptDictation
records with the same MRN/DOS combination as the ptEncounter records, 2 ptSchedule
records with the same...
October 14, 2008 at 8:04 am
rbarryyoung (10/10/2008)
Those two UDF calls in the second subquery are probably killing any chance of optimizing it right now. Can you post their definition?
ALTER FUNCTION [dbo].[rr_GetDateFromDateTime](@DT datetime)
RETURNS datetime
AS
-- Returns...
October 10, 2008 at 3:45 pm
I was able to cut the execution time by 2/3 by reformatting it like this:
select CASE
WHEN EXISTS (SELECT d.MRN FROM ptDictation d...
October 10, 2008 at 2:07 pm
Luke L (10/10/2008)
With just a quick look is this something that might go faster if...
October 10, 2008 at 2:01 pm
Nevermind, found the answer here:
http://www.sqlservercentral.com/Forums/Topic581008-338-1.aspx
October 6, 2008 at 10:26 am
Vladan (9/30/2008)
September 30, 2008 at 6:59 am
The execution plans are located here:
hold on, there seems to be a problem with my zip file.
Ok, it works now, I forgot to upload using binary mode.
September 29, 2008 at 2:29 pm
I just can't understand why the execution plan is so different and the difference between calling as a query .vs calling as a SP is so great.
September 29, 2008 at 1:14 pm
That didn't help, in fact, it made things worse as it took 12 seconds to load .vs 6, before I
added the local variables, on a particular MRN/Observation set, i.e.
exec...
September 29, 2008 at 1:06 pm
To be honest, the data is for a medical practice management solution that has both a Windows and web client that use the same data.
It is horribly architected and, even...
September 24, 2008 at 7:34 am
We actually do, this is a script to convert a competitor's data.
This is how I actually ended up formatting it:
RTRIM(CAST(diagnosis1 AS CHAR(1))
...
September 23, 2008 at 11:26 am
Thanks ,Luke, I was unsure how to do that and we will just do it in the select like
you showed.
September 23, 2008 at 11:11 am
No, the cascading deletes, for some unknown reason, aren't working even though we have a Foreign key on the OrderID column.
Note: I just started here a little over a...
September 12, 2008 at 10:13 am
Yepper, that did it. Thanks a million.
September 12, 2008 at 9:14 am
I believe that may work for me. let me test it right quick.
September 12, 2008 at 8:49 am
Viewing 15 posts - 91 through 105 (of 197 total)