Truncate Table permission in Azure Synapse

Maitra-v, Anirban 141 Reputation points
2022-03-02T23:20:04.443+00:00

Hi,

We have several schemas inside a dedicated sqlpool. I want to give Truncate privilege to all the objects of a particular schema to a AAD group.

I found the below syntax:

EXEC sp_addrolemember 'db_ddladmin', 'Azure AD Group';

But it seems that it will provide that privilege across all other schemas as well. How can i restrict to a particular schema.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
0 comments No comments
{count} votes

Answer accepted by question author
  1. AaronHughes 401 Reputation points
    2022-03-03T11:34:17.197+00:00

    you can use DCL rather than the sys proc

    GRANT ALTER on schema::schemaname to 'Azure AD Group'


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.