Applying Non clustered Index on a table with no clustered index

Salil Singh 40 Reputation points
2025-04-14T18:45:28.6866667+00:00

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

SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
177 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.