Hi
I had created one custom db and tables in that in project server 2010 sql instance.
I created custom data to save the history on daily bases.
Now ,what i required is changes are reflecting in written query in job,but that chnages are not reflecting in customtable.
here the code is...
Alterprocedure DATAMSBU
as
INSERTINTO ResourceData(RecordDate,
Region,
[Current location],
ResourceName,
[Employee ID],
ProjectName,
ContractID,
AccountName,
Stack,
[Resource Status],
ProjectType,
[Resource Start Date],
[Resource Release Date],
[ResourceUID])
(Select T1.*from
(SELECTGETDATE() as TodayDate, Region ,[Current location],ResourceName,[Employee ID]as emp1,R.ProjectName,ContractID,AccountName,Stack,[Resource Status],[ProjectType] ,[Resource Start Date],[Resource Release Date],ResourceUID
FROM [ProjectServer_Reporting].dbo.MSP_EpmResource_UserView
AS RLEFTOUTER JOIN [EPMCUSTOMDATA].dbo.CONTRACTINFO
AS CON R.ProjectName=C.ProjectNameWHERE (ISNULL([Employee ID],''))!='') T1
leftjoin ResourceData T2 onCONVERT(VARCHAR(19),TodayDate,101)=CONVERT(VARCHAR(19),GETDATE(),101)and emp1=T2.[Employee ID]where T2.[Employee ID]isnull)
exec DATAMSBU
..i created a job to run every day and to insert the row of chnaged data in the "resourcedata" table .But the changes are reflecting in the query
(SELECTGETDATE() as TodayDate, Region ,[Current location],ResourceName,[Employee ID]as emp1,R.ProjectName,ContractID,AccountName,Stack,[Resource Status],[ProjectType] ,[Resource Start Date],[Resource Release Date],ResourceUIDFROM [ProjectServer_Reporting].dbo.MSP_EpmResource_UserView
AS RLEFTOUTER JOIN [EPMCUSTOMDATA].dbo.CONTRACTINFO
AS CON R.ProjectName=C.ProjectNameWHERE (ISNULL([Employee ID],''))!='')....in this i can see the changes
but in resourcedata table i may not able to see the changes.
Please help me on this..
Thanks in advance
Sowjanya G