Azure SQL - can't drop system versioned tables

Vitalii Bohachov 0 Reputation points
2025-02-26T09:06:45.93+00:00

Hello.

I'm can't drop system versioned tables in master db in Azure SQL

I have a docs - https://learn.microsoft.com/en-us/sql/relational-databases/tables/stopping-system-versioning-on-a-system-versioned-temporal-table?view=azuresqldb-current

but request

ALTER TABLE dbo.Employees
SET (SYSTEM_VERSIONING = OFF);

returns an error: Msg 13538, Level 16, State 3, Line 1

You do not have the required permissions to complete the operation.

How I can delete this tables?

SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
130 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 46,196 Reputation points
    2025-02-26T12:37:03.8433333+00:00

    ALTER TABLE dbo.Eployees

    Typo? Eployees vs Employees


  2. Erland Sommarskog 117.8K Reputation points MVP
    2025-02-26T22:25:47.07+00:00

    You need to find some who has sufficient permission. For this operation you need at ALTER permission on the table.


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.