Hi,
I have a ssis package 2008 r2 that someone as created, I am unsure what the package is doing and wanted to know what would happen if I amend the table it uses to check the instances?
I will write down the steps below on what I believe it is doing:
Step 1
Clear Stage - It will run the following sql statement:
truncate table ClosedCallsToday
Step 2
Get production instances - It will run the folllowing sql statement:
select nz_conn.ConnectionString as NZ_CONN, usa_conn.ConnectionString as USA_CONN from (select ConnectionString from TableCheck where productioninstance = 'nz') nz_conn, (select ConnectionString from TableCheck where productioninstance = 'usa') usa_conn
It looks like it is putting te above sql into a variable as the result set has a Single Row and when I look at the Result Set it has the following:
Result Name Variable Name
0 User::NZ_Conn
1 User::USA_Conn
The result for sql query for step 2 appears as below, as one record but two columns:
NZ_CONN
Provider=MSDAORA.1;Data Source=nzprod9i;User ID=sa;Password=forever
USA_CONN
Provider=MSDAORA.1;Data Source=usaprod;User ID=sa;Password=forever
Step 3
Fetch calls that have been completed today NZ - It will run the folllowing sql statement using the connection NZ_Conn:
Select ID, Area From Completed Where date = getdate()
The results will be then be put into a table called "ClosedCallsToday" on our datawarehouse table
Step 4
Fetch calls that have been completed today USA - It will run the folllowing sql statement using the connection USA_Conn:
Select ID, Area From Completed Where date = getdate()
The results will be then be put into a table called "ClosedCallsToday" on our datawarehouse table
Does anyone understand what the above is doing as I'm unsure?
Thanks