1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
SELECT * VON (CRMPROD_01.dbo.P_Deals.dealId VORWÄHLEN, CRMPROD_01.dbo.P_Events_Table_Types.eventType, CRMPROD_01.dbo.P_Events_Table.eventData Vom CRMPROD_01.dbo.P_Deals KREUZ VERBINDEN GELASSENE CRMPROD_01.dbo.P_Events_Table_Types VERBINDEN CRMPROD_01.dbo.P_Events_Table AUF CRMPROD_01.dbo.P_Events_Table.dealId = CRMPROD_01.dbo.P_Deals.dealId UND CRMPROD_01.dbo.P_Events_Table.eventTypeID = CRMPROD_01.dbo.P_Events_Table_Types.eventTypeID) Pv GELENK (max (eventData) FÜR [eventType] INNEN ([AppReceived], [AppToClosingAgent], [DisclSent], [DisclSigned], [DisclToClosingAgent], [DisclToCF], [PATargetDate], [PASent], [PASigned], [PAComplete], [PAtoCF], [ToCounsel], [PetitionFiled], [HearingDate], [PendingCO], [PendingCOExpl], [CourtOrder], [CourtOrderRcd], [InsuranceApproved], [InsuranceDenied], [InsPolicyIssued], [Einfluss], [fallen gelassen], [Redocumented], [AutoProjFunding], [ManProjFunding], [FundsRequested], [AmtRequested], [PreFunded], [FundsRcd], [finanziert], [geschlossen], [InvBookCreated], [InvBookSent], [AP_BL_Requested], [AP_BL_In], [SetAgrIn], [DriverLicIn], [SocSecIn], [MarCertIn], [DivDecreeIn], [DCIn], [OtherDocDesc1], [OtherDocDate1], [OtherDocDesc2], [OtherDocDate2], [OtherDocDesc3], [OtherDocDate3], [NASPSearch], [NASPClearance], [NASPDealEntered], [NASPNotes])) ALS pev
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25:
VERFAHREN usp_UpdateData VERURSACHEN WIE ANFANGEN -- Erste freie vorhergehende Aufzeichnungen TRUNCATE TABELLE YourTempTable -- Daten in temporäre Tabelle einsetzen IN YourTempTable EINSETZEN VORWÄHLEN * VON (CRMPROD_01.dbo.P_Deals.dealId VORWÄHLEN, CRMPROD_01.dbo.P_Events_Table_Types.eventType, CRMPROD_01.dbo.P_Events_Table.eventData Vom CRMPROD_01.dbo.P_Deals KREUZ VERBINDEN GELASSENE CRMPROD_01.dbo.P_Events_Table_Types VERBINDEN CRMPROD_01.dbo.P_Events_Table AUF CRMPROD_01.dbo.P_Events_Table.dealId = CRMPROD_01.dbo.P_Deals.dealId UND CRMPROD_01.dbo.P_Events_Table.eventTypeID = CRMPROD_01.dbo.P_Events_Table_Types.eventTypeID) Pv GELENK (max (eventData) FÜR [eventType] INNEN ([AppReceived], [AppToClosingAgent], [DisclSent], [DisclSigned], [DisclToClosingAgent], [DisclToCF], [PATargetDate], [PASent], [PASigned], [PAComplete], [PAtoCF], [ToCounsel], [PetitionFiled], [HearingDate], [PendingCO], [PendingCOExpl], [CourtOrder], [CourtOrderRcd], [InsuranceApproved], [InsuranceDenied], [InsPolicyIssued], [Einfluss], [fallen gelassen], [Redocumented], [AutoProjFunding], [ManProjFunding], [FundsRequested], [AmtRequested], [PreFunded], [FundsRcd], [finanziert], [geschlossen], [InvBookCreated], [InvBookSent], [AP_BL_Requested], [AP_BL_In], [SetAgrIn], [DriverLicIn], [SocSecIn], [MarCertIn], [DivDecreeIn], [DCIn], [OtherDocDesc1], [OtherDocDate1], [OtherDocDesc2], [OtherDocDate2], [OtherDocDesc3], [OtherDocDate3], [NASPSearch], [NASPClearance], [NASPDealEntered], [NASPNotes])) ALS pev ENDE