In our workflows we lookup to several smallish data tables (anywhere from 200 rows to 7000 rows). In running a SQL trace it became apparent to our DBA that our data tables are set up as HEAP. I believe the initial setup of these tables was done by Laserfiche, so my question is is that a recommended approach?
We are considering if placing an index on any of these tables would make the queries faster, and after running a trace on a query done via the Query Data tool, our DBA said that Dynamic SQL was used so an index wouldn't work. So I converted it to a Custom Query and it seems that in the trace two queries occur, one still using dynamic SQL and one without.
So my questions are:
1) Any insight on why was HEAP used to begin with?
2) Is it only possible to get benefits from indexes when using the Custom Query?