I have one ssis package. After load the staging data I am creating index in one column. I am dropping the index end of package. But sometimes after create the index if I
got any error I need to re run the package, already index is created so that’s why
once again I will get a error. So that purpose drop index statement I used before create index sqltask.If the first time package runs the table don’t have index. If the table have index it will drop the index otherwise it will skip that task. I
used below code. But I am getting the error index is not dropped properly.
IF EXISTS (SELECT name FROM sys.indexes WHERE name =
View Complete Post