Hi guys,
I hope you can help me.
I would like to update all Unique records by verifying that the Project Number of one table does not exist in the other.
Currently I have the procedure below, but I get an error as the returned results are more than 2100:
[h=2]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.[/h]
Any ideas how I can rewrite this to work?
Thank you in advance!
I hope you can help me.
I would like to update all Unique records by verifying that the Project Number of one table does not exist in the other.
Currently I have the procedure below, but I get an error as the returned results are more than 2100:
[h=2]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.[/h]
Any ideas how I can rewrite this to work?
C#:
public static void NewRecords()
{
using (var stageContext = new StagingTableDataContext())
{
using (var destinationContext = new DestinationTableDataContext())
{
var allProjectNames = destinationContext.THEOPTIONs.Select(u => u.NAME).ToList();
var deltaList = stageContext.ProjectMasters.Where(u => !allProjectNames.Contains(u.Finance_Project_Number)).ToList();
deltaList.ForEach(u => u.Processing_Result = 0);
deltaList.ForEach(u => u.Processing_Result_Text = "UNIQUE");
}
stageContext.SubmitChanges();
}
}
Thank you in advance!