How can we help you today? How can we help you today?
Kendra_Little
Hi, This video and related scripts is on this topic, and I think might help: [image] https://www.youtube.com/watch?v=-rZxLCRrgmI (If you expand the youtube description, the links to example code are in the "show more" bit.) Cheers, Kendra / comments
Hi,This video and related scripts is on this topic, and I think might help: https://www.youtube.com/watch?v=-rZxLCRrgmI(If you expand the youtube description, the links to example code are in the "...
0 votes
Hi Yan, Apologies that you hit this error.  I suspect that the error text bubbling up here may be misleading. The actual issue may be that the SQL Server can't resolve that specific login name. This can often happen if the production environment is in a different domain and than development. There are two things that you might wish to configure when creating the new project, before creating the baseline script: 1. Do you wish to include users (and related logins) in the project?  If you do have some segmentation between your domains and the users and related logins which are being scripted aren't valid everywhere, then you probably wish to filter these out. To do this, when creating a project, on the "Options" screen there is an opportunity to specify a filter file that excludes  users from the project. This filter file can be created and saved using the SQL Compare GUI.[image] [image] (Screenshot at the bottom of this post) I created a filter file excluding users and popped it in this Gist.   More information is here on how to do this in case you'd like to do this yourself, or you want to create a more complex filter that also excludes other things. 2. Do you wish to include any permissions outside of role based permissions in the project? Sometimes permissions have been granted to individual users inside the database on specific objects. Often if you want to filter out users, you also want to change a comparison option so that only role-based permissions are included. To configure this, on the options tab when creating the project, hit the "Edit comparison options" button. This is right below where you configure the filter.  Select "Users' permissions and role memberships" (screenshot below). Hope this helps! Kendra ----- [image] [image] / comments
Hi Yan,Apologies that you hit this error. I suspect that the error text bubbling up here may be misleading. The actual issue may be that the SQL Server can't resolve that specific login name. This ...
0 votes