tigertoolbox icon indicating copy to clipboard operation
tigertoolbox copied to clipboard

Executing usp_AdaptiveIndexDefrag in a Azure Data Factory (ADF) activity

Open cyrmul opened this issue 3 years ago • 0 comments

Hi,

I use Azure Data Factory (ADF) in my project. I would like to extend the use of ADF to do the maintenance of the Azure SQL Database but it doesn't work.

I can execute the stored procedure usp_AdaptiveIndexDefrag in SSMS and it works very well (thanks! 👍 ). I have my pipeline with the stored procedure activity, but the execution takes only 4 seconds. It ends OK but nothing has been done: there is no row in tbl_AdaptiveIndexDefrag_log for example. With the SQL Profiler, I see the query "exec [dbo].[usp_AdaptiveIndexDefrag]" but it doesn't help me...

Do you have an idea to fix this?

ADF_index

cyrmul avatar Apr 29 '22 08:04 cyrmul