Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: LeanerThanks @ejones,
I may have been simplifying my examples a little bit, I have 48 columns I am listing on the query. So would this be the complete solution?
SqlQuery=
INSERT INTO ldte_contractCreditControl_DEV
(CONTRACTID, ContractAnalysis, Ccs_Sil_App_THIS_RECORD, LLContractNo, ContractNumber, SiteAddress, ClientCode, ClientName, ClientRef, ClientContact, ClientContactPhone, ClientContactMobile, ClientContactEmail, ProjectManagerCode, ProjectManager, ProjectManagerPhone, ProjectManagerMobile, ProjectManagerEmail, OurContact, App_Number, ValuationDate, ValuationDateDue, ValuationDateDueWeekEnd, Today, TodayWeekEnd, WeeksOld, AgedStatus, AgedValue, App_Net, IPC_Number, IPC_Net, App_Not_IPC_Net, Inv_Number, Inv_Net, Inv_VAT, Inv_Total, IPC_Not_Inv_Net, Paid_Net, Paid_VAT, Paid_Gross, Inv_Not_Paid, Inv_Not_Paid_Gross, PaidStatus, App_CreditControl_NoteNo, IPC_CreditControl_NoteNo, Inv_CreditControl_NoteNo, InvOBalStatus, Inv_Due_Date, pk_id)
VALUES
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
SqlQueryFieldBindings=
CONTRACTID,CONTRACTID,ContractAnalysis,ContractAnalysis,Ccs_Sil_App_THIS_RECORD,Ccs_Sil_App_THIS_RECORD,LLContractNo,LLContractNo,ContractNumber,ContractNumber,SiteAddress,SiteAddress,ClientCode,ClientCode,ClientName,ClientName,ClientRef,ClientRef,ClientContact,ClientContact,ClientContactPhone,ClientContactPhone,ClientContactMobile,ClientContactMobile,ClientContactEmail,ClientContactEmail,ProjectManagerCode,ProjectManagerCode,ProjectManager,ProjectManager,ProjectManagerPhone,ProjectManagerPhone,ProjectManagerMobile,ProjectManagerMobile,ProjectManagerEmail,ProjectManagerEmail,OurContact,OurContact,App_Number,App_Number,ValuationDate,ValuationDate,ValuationDateDue,ValuationDateDue,ValuationDateDueWeekEnd,ValuationDateDueWeekEnd,Today,Today,TodayWeekEnd,TodayWeekEnd,WeeksOld,WeeksOld,AgedStatus,AgedStatus,AgedValue,AgedValue,App_Net,App_Net,IPC_Number,IPC_Number,IPC_Net,IPC_Net,App_Not_IPC_Net,App_Not_IPC_Net,Inv_Number,Inv_Number,Inv_Net,Inv_Net,Inv_VAT,Inv_VAT,Inv_Total,Inv_Total,IPC_Not_Inv_Net,IPC_Not_Inv_Net,Paid_Net,Paid_Net,Paid_VAT,Paid_VAT,Paid_Gross,Paid_Gross,Inv_Not_Paid,Inv_Not_Paid,Inv_Not_Paid_Gross,Inv_Not_Paid_Gross,PaidStatus,PaidStatus,App_CreditControl_NoteNo,App_CreditControl_NoteNo,IPC_CreditControl_NoteNo,IPC_CreditControl_NoteNo,Inv_CreditControl_NoteNo,Inv_CreditControl_NoteNo,InvOBalStatus,InvOBalStatus,Inv_Due_Date,Inv_Due_Date,pk_id,pk_id
FUN!