Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

SQL AlwaysOn backups Shrink Database

$
0
0

Hi,

I am configuring SQL AlwaysOn backups in our environment. The first step will backup the databases, that works fine, the last step is to remove files older than 3 days, that works fine ...The problem is the Shrink Database command that runs second wont work ..it keeps failing with the error:

"Property Size is not available for Database 'Database_Name'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. "

I've googled but cant find anything related to this error. I can run sp_helpdb and get all of the information i need (when connecting in with the ApplicationIntent=ReadOnly switch)

I am running the backups from the secondary server. Is it not possible to Shrink the DB from the secondary server as this runs fine from the primary?

cheers,

Jon


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>