I have stored alter commands in table for reindexing.
How should I execute them one by one using cursor or any other method.
Below are the commands stored in table.
alter index PK_Customer_CustomerID On SalesLT.Customer REORGANIZE
alter index PK_Product_ProductID On SalesLT.Product REORGANIZE