Copy file from ticket to C:\LocalDev\Development Source Code\Emergency_Service_Billing\New Emergency Service Billing System\DataFiles on DT-DEV
Open Access DB: "C:\LocalDev\Development Source Code\Emergency_Service_Billing\New Emergency Service Billing System\Direct Travel Emergency Service Billing.accdb"
Delete all rows from staging_ets_emergency_calls
Copied and pasted data into staging_ets_emergency_calls from Excel sheet provided

Run macro import_es_data-RunMeAfterImportingData
When running Query (will take several minutes) it will popup with message about appending rows, click yes
-- Run SQL Script to verify data is in SQL Server -- script to check final data -- ON DTIHASQL USE CallLogDB declare @StartDate date, @EndDate date set @StartDate= DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE())-1, 0) --First day of previous month set @EndDate = DATEADD(MONTH, DATEDIFF(MONTH, -1, GETDATE())-1, -1) --Last Day of previous month select @StartDate , @EndDate select * from [dbo].[emergency_services_calls] where Date between @StartDate AND @EndDate order by 1

Add note to ticket:
--- Steps
1. Delete all data from "staging_ets_emergency_calls" table
2. Copy data from new excel file to "staging_ets_emergency_calls" table
3. Run "import_es_data-RunMeAfterImportingData" macro - right click Macro and select run
4. Run final check script
-- Run SQL Script to verify data is in SQL Server
-- script to check final data
-- ON DTIHASQL
USE CallLogDB
declare @StartDate date, @EndDate date
set @StartDate= DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE())-1, 0) --First day of previous month
set @EndDate = DATEADD(MONTH, DATEDIFF(MONTH, -1, GETDATE())-1, -1) --Last Day of previous month
select @StartDate , @EndDate
select *
from [dbo].[emergency_services_calls]
where Date between @StartDate AND @EndDate
order by 1
Reply to user:
Hi Tricia
File was processed today.
Thanks,
Sean
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article