Applying Non clustered Index on a table with no clustered index
Hi Team,
I am working on to improve the performance of a Stored Procedure in SQL Server Database. Table scan is happening on a table on which there is no primary key defined. Structure of table is as such that primary key could not be defined on the table. This table is getting joined with another table.
Based on columns in Join and Where clause, I have defined Non Clustered Index on the table. Please let me know if this will help improve the performance or not OR still table scan will happen. In Dev, my table is having less data, even after applying above Index, still Table scan us getting show in query execution plan. I am hoping in upper environments where there is large data, Non clustered index will be used and performance will get improved.
Please let me know if above understanding is correct OR if there is any other way I could improve the performance and avoid table scan.
Thanks,
Salil