I just want to ask which is better with regards to performance.
I have created a stored procedure that has
OPTION A
1. DROP TABLE Statement
2. SELECT INTO Statement
3. CREATE CLUSTERED INDEX
Note: basically the stored procedure drops and re-creates the table, then creates a CLUSTERED INDEX on it.
And I am thinking if this one should be better compared to the one I created.
OPTION B
1. TRUNCATE TABLE Statement
2. INSERT INTO Statement
Note: with my OPTION B there will be no creation of CLUSTERED INDEX because the table already has a CLUSTERED INDEX.
Thank you for all of you who will going to help me with this one.