Create Proc dbo.UpdateCognos
AS
--Declare Variables
Declare @SidTemp varchar(16)
--CREATE A TEMP TABLE TO INSERT THE TEMP SID
Create Table #SidTemp (SidTempId varchar(16))
--Get the Temp Sid from
Select @SidTemp = KPISID from OpenQuery(METRICS, 'select max(KPI_SID) + 1 as KPISID from (select KPI_SID from METRIC_STORE.kpi
union
select KPI_USER_VALUE_SID from METRIC_STORE.KPI_USER_VALUE)')
--Insert temp Sid into tempTable
Insert #SidTemp (SidTempID) VALUES (@SidTemp)
--Get data to insert into the Temp Table
Select KPISID,
TimePeriodSid,
1,
ActualVal,
TargetVal,
ToleranceVal,
ToleranceRaw,
Bench1,
Bench2,
Bench3,
Bench4,
Bench5,
21,
getdate(),
'N'
from cognosmetrics.dbo.cognosmetrics
where bitDb = 1
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE