I am working on an application that has two databases.
I have an object, let it permit , which has an id list referencing the id from the table, allows this to be called in tasks in another database.
I am trying to run the following query:
var listOfUsedIds = select taskid from Permit_Task; Select * from task where id not in (listOfUsedIds)
When I run this code, I get an error:
The output from the Remote Inbound Table Data Stream (TDS) (RPC) remote procedure protocol flow is incorrect.
Too many parameters were provided in this RPC request. The maximum is 2100.
I cannot run a sub-select or any thing because NHibernate will not allow me to do this on two databases.
Can someone help me in solving this problem?
source share