I'm loading a CSV file containing many thousands of rows into a .NET DataTable that looks something like this:
MyLocalDataTable SequenceNo, Etc
I have a table in an SQL database and I'd like to pull records into another datatable based on what I find in the CSV file.
MySQLBDTable IdentityID, SequenceNo, Etc
The SequenceNo is my common field. I'd like to do a SELECT on MySQLBDTable that only returns the rows with a SequenceNo from MyLocalDataTable. I'm not sure how to do this. I want to avoid a SELECT query with thousands of WHERE SequenceNo= clauses.
Is there a simple and efficient way to do this?