Viewing 15 posts - 5,686 through 5,700 (of 6,486 total)
never mind the dynamic right now - what do you get when you run these two statements?
--statement #1
select p.*
from
(SELECT Title,convert(char,Quality_date,112) Quality_date,serviceType,Amount
from (select Title,Quality_date,TOT_ALL_RECS from DATA_QUALITY_OVERVIEW_TOTALS_AND_PERCENTAGES) p
--statement #2
select p2.*
from...
November 26, 2007 at 11:05 am
I understand that your VB code says 3.8...
But - just put this into Excel and you get:
5.23853E-32
You got something stinky happening in the VB code....
November 22, 2007 at 8:59 am
One last thing to consider... Since Excel is so "eager" to hijack the handler for .CSV files, often enough I simply create those as my "excel integration" solutions. That...
November 21, 2007 at 9:07 pm
Jim Russell (11/20/2007)
When using a UDF in the where, run time goes from < .01 seconds to 2.14 minutes (134 seconds)
-- Comment this is 13 thousand times slower
I also...
November 21, 2007 at 8:46 pm
Jeff Moden (11/21/2007)
Matt Miller (11/19/2007)
Hey - if you're going to give me a new stapler, expect to find some things stapled.....:D
Heh! If that's true, guess I need to give you...
November 21, 2007 at 7:57 pm
you want to look up the CROSS Apply example from the "XML Best Practices for SQL Server 2005". You can do ALL of that in one shot (no variable,...
November 21, 2007 at 11:26 am
R2ro (11/21/2007)
WHERE
(A = @varA AND @varA IS NOT NULL) OR --line1
(B = @varB AND @varB IS NOT NULL) OR --line1
(C = @varC AND @varC IS NOT NULL) OR
(@varA IS...
November 21, 2007 at 11:15 am
You're doing a full transpose - so it gets a bit messier than that... Assuming you DO have SQL 2005 (since that's the forum you're on), here's an UNPIVOT/PIVOT method...
November 21, 2007 at 11:00 am
keep in mind that this tactic kills any possibility of using indexes, AND will choke unless the two operands are of the same data type. Meaning - this will...
November 21, 2007 at 7:56 am
I'm assuming that's XP Pro 64, since that's the only one that technically can run the trial edition (according to system requirements).
error 40 / error 53 usually means "no one...
November 20, 2007 at 4:15 pm
It would help if we knew what the ID is that relates them to each other. Is there a patientID? an encounterID? something? Also - a table name...
November 20, 2007 at 3:51 pm
aureolin (11/16/2007)
More constraints equals better data quality, at the price of system usability. Less constraints equals more usability at the price of system integrity. As DBA's almost everyone will say...
November 20, 2007 at 1:33 pm
Viewing 15 posts - 5,686 through 5,700 (of 6,486 total)