-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DacFx doesn't get schema permission differences in comparison. #493
Comments
Azure Data Studio: 1.48.0 |
Hi @Aldebaran91, granted permissions are the relationship types to the user and they can be dropped along with the user drop. What I understand from the query is In ADS we are not displaying the granted permissions on user syntax, and the same happening on VS22 as well. Would like to know what are you expecting from the fix, should show the granted permissions on the SC difference UI only, or also when applying the changes, you are expecting to get the grant permissions statements generated? |
Hi @Aldebaran91 , granted permissions are the relationship types to the user and they can be dropped along with the user drop. What I understand from the query is In ADS we are not displaying the granted permissions on user syntax, and the same happening on VS22 as well. Would like to know what are you expecting from the fix, should show the granted permissions on the SC difference UI only, or also when applying the changes, you are expecting to get the grant permissions statements generated? |
In my company we created for each database a SQL project. To check if the SQL project is the same on the production we make a schema compare. It says that everything is equal. But we noticed that it doesn’t show diffs for permissions on dbo level like: GRANT SELECT ON SCHEMA::dbo TO DBROLE_XY But if we change the permission on another schema(not dbo) it will display the difference in the schema compare overview in VS22. Please fix this bug! |
With the provided "Grant select on schema", I can see them on any schema other than dbo as you mentioned. The reason is we are trying to see the default permission on a default schema, whereas for other schemas we do see the create schema with granting select to the user on it. Can you please attach the repro of any sample project and your comparing database script. would like to repro the correct scenario before I we fix it. I'm little confused if your scenario is similar to the below permissions that are not being displayed in the compare result. consider the test user authorized to dbo/any other schema. GRANT ALTER ANY EXTERNAL FILE FORMAT TO test |
I used SQL Server 2022 and VS2022 17.11.4 Can you give me feedback if you get the same results? |
Steps to Reproduce:
Did this occur in prior versions? If not - which version(s) did it work in?
No version works. No permissions differences are detected. But on Visual Studio 2022(17.11.4) it detects only schema permission differences if the schema isn't 'dbo'.
(DacFx/SqlPackage/SSMS/Azure Data Studio)
The text was updated successfully, but these errors were encountered: