Data Factory cant see the Stored Procedure in my Azure SQL database

Debbie Edwards 521 Reputation points
2020-08-06T10:29:43.197+00:00

In SQL I have created a user and rule with full access to my schemas

-- Create the user with Password for users that authenticate at the database
CREATE USER DBowner WITH PASSWORD = 'pwrd';

--Im going to create a role and I want that rule to have full access across the schemas
CREATE ROLE db_Owner_full;

--Execute the Stored Procedure addrole member. Here the Org_powerbi user is being added to the above role
EXEC sp_addrolemember 'db_Owner_full', 'DBowner';

--And Grant full access to the schemas

GRANT SELECT, INSERT, UPDATE, DELETE ON SCHEMA :: audits TO db_Owner_full;

I have created a Stored Procedure on the audits schema
And My Link Service for the Azure SQL Database has the usename and password as above which works and I can see all the tables

However When I create a Stored Procedure activity it cant see the Stored Procedure. Do I need to do any thing else when I GRANT access in order to see the Stored Procedure?

Thanks in advance

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,841 questions
0 comments No comments
{count} votes

Accepted answer
  1. Debbie Edwards 521 Reputation points
    2020-08-06T10:48:05.683+00:00

    got it I needed to add

    GRANT EXECUTE ON OBJECT::audits.USP_UpdateMetrics
    TO db_Owner_full;

    and it worked

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.