Hi mo boy,
I hope my answer is helpful to you,
Your
Bjoern Peters
If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!
Why not use the official "DBCC SHRINKFILE"?
It also supports Azure SQL Managed Instance.
USE UserDB;
GO
DBCC SHRINKFILE (DataFile1, 7);
GO
I hope my answer is helpful to you,
Your
Bjoern Peters
If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!