Hello! The situation is as follows.
- According to the data from the form, a request to the oracle database is generated.
- Using ado.net, data is loaded into the datable from oracle.
- After that, you need to unload another table from another MSSQL db based on the id field loaded in step 2. That is, in essence, zatzhoynit table in datatable and table in DB mssql.
Mssql and oracle are read only. The cycle to send requests for each record loaded into a datatable is not an option, because there may be more than 400 thousand records in it and this will be delayed for several days.
Advise how it is possible to implement loading in datatable described in item 3 on c #?
id=1 or id=2 or ...- MonomaxWHERE id IN (...), but without going beyond the allowed limit of the size of the query text) and request information from MS SQL on the whole block at once. - Akina