ELastic database

Sainath Reddy Kompelly 0 Reputation points
2023-04-24T07:36:14.55+00:00

Hello, I have created one Elastic job database and added in SQL elastic agent.Then after I have created on etarget server and added 6 databases in that. Firstly, I created job steps and credentials on Elastic job database and tried to create one table on all target databases, then it works fine But, I have created Index fragmentation SP on Elastic job database and tried to execute on target databases but getting the below error. Command failed: Could not find stored procedure 'dbo.IndexOptimize'. (Msg 2812, Level 16, State 62, Line 1) Please help me on this issue.

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2023-04-24T08:11:43.8466667+00:00

    Hi Sainath Reddy Kompelly

    Welcome to Microsoft Q&A forum and thanks for using Azure services.

    As I understand, you are getting error in Elastic Database after creation of Index Fragmentation Stored Procedure.

    Please check below links if helpful for your usecase:

    Ola Hallengren’s SQL Server Maintenance Solution – Index and statistics maintenance

    Could not find stored procedure in SQL Server

    SQL Server Index and Statistics Maintenance

    Let us know if this is helpful else please share more details so that we can assist you further.

    Thanks.


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.