I have a SQL query which executes within seconds (< 4) in Toad, but it takes around 8 mins when run using C# (System.Data).
What could be the reason ? How Can it be resolved ?
SQL Query
SELECT TAB1.COL1, TAB1.COL2
FROM TAB1, TAB2
WHERE TAB1.COL1 = TAB2.COL1
AND COL2 IN (...)
C# Code
this.DbAdapter.Select(cmdText, dbparams,
"TAB1", this.dbConnection.Transaction);
What I referred already and does not help: