Viewing 15 posts - 331 through 345 (of 471 total)
We're talking 46 seconds v 38 seconds, not a huge amount at all. Both of the timings are averaged out from several runs.
They are both being stored in a...
June 30, 2016 at 8:16 am
Hi Chris
I've had a look at the updated Splitter code and it actually runs a few seconds slower than my original.
Not entirely sure why as I would have thought it...
June 30, 2016 at 7:55 am
Thanks Chris
I'll have a look at the updated Splitter code and let you know the outcome.
As for the second part, I'm storing what is effectively a number (e.g.20160630 for today)...
June 30, 2016 at 7:04 am
Hi Chris
That was just a code snippet, here's the complete query:-
set dateformat dmy
declare
@start datetime
,@end datetime
set @start=cast(DATEADD(month,-2,getdate())-DATEPART(d,getdate())+1 as date)
set @end=cast(DATEADD(month,-1,getdate())-DATEPART(d,getdate()) as date);
INSERT INTO [MDS_Maternity].[dbo].[MAT401Induction] (
[LocalPatientIdMother]
,[LabourOnsetDateTime]
,[LabourInductionMethod]
,[OxytocinAdministeredDateTime]
,[ReportingMonth]
)
SELECT distinct
LocalPatientIdMother = ad.UnitNumber
,[LabourOnsetDateTime] = cast(
dateadd(minute,cast(right(q2.TimeofOnsetofLabour,2) as...
June 30, 2016 at 5:42 am
Thanks Chris
I've now got it running as expected.
June 30, 2016 at 5:16 am
Hi Chris
Thanks for that.
So I'd just just APPLY/LEFT JOIN as normal?
As for the linked server, I have to for now.
We're upgrading some servers to SQL2012 and then going to use...
June 30, 2016 at 4:31 am
Thanks for that Jeff.
I'll have a chat with the SAN admins and see where our drives are sat.
April 19, 2016 at 1:57 am
@frederico - we did have a think about the load balancing option by using some sort of load table to pick up the next available file but couldn't quite figure...
April 18, 2016 at 4:14 am
Hi Jeff
If only......
We get the CSV files as a data extract (I haven't got a clue what format the back end of the application runs on).
This is also a national...
April 14, 2016 at 3:32 am
The files contain different data (and headers) and are loaded via a BCP routine.
The targets are also dealt with in a similar fashion (the target SQL table is starts tbl...
April 13, 2016 at 8:40 am
Hi Phil
Yes, each file goes into its own table and is further processed by SQL separately.
April 13, 2016 at 8:15 am
@john-2 - we can't add any indexes at all to any of the tables as it's a 3rd-party app that pushes its data through to SQL. The only thing...
April 7, 2016 at 8:38 am
@hugo - I've tried clearing the plan cache and then running the code again but it was still giving me the same issue.
I can run the basic SELECT or the...
April 7, 2016 at 7:20 am
Viewing 15 posts - 331 through 345 (of 471 total)