You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
The user you used to read the db is ok, but it is not the only user that that object might have grants to. You might have set up roles for example and given different roles different access permissions.
For example I might have a role/user called ReportRunner and that might only have SELECT permissions on some tables. Currently you lose all that info. The only info you keep is the "owner" of the object - which in this case is the user you are logged in as.
Plus with sql you can give deny permissions too where you explicitly DENY a permission to a specific user/role.
It seems SQL Server 2016 introduced the CREATE or ALTER syntax, which avoids having to drop each object (and losing permissions). Will add this to idempotent options soon!
This is great - but you're missing grants for each object, especially if you're going to drop and recreate every time...
The text was updated successfully, but these errors were encountered: