web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

How To Disable A Database Using PSTL

Ian Grieve Profile Picture Ian Grieve 22,784

Now that the Professional Service Tools Library (PSTL) has been installed it’s time to take a look at some of the functionality available.

The first one I’ll look at is how to disable a database so users cannot log in. Without using PSTL, to deactivate a database requires you to use the User Access window (Microsoft Dynamics GP menu >> Tools >> Setup >> Administration >> User Access) and select each user in turn and uncheck the company to be disabled. If you have more than a handful of users, this can take a long time to do but with PSTL all users can be disabled very quickly.

I am using a demo system to do this which only has a handful of users in it. I’ll be using the iang user who currently has access to four companies;

User Access Setup

When I log into Microsoft Dynamics GP with this user I see all four companies listed in the Company selection field;

Company Login

If we open PSTL the first option in the Active/Enable section is the Database Disabler;

Professional Service Tools Library

If we select this option and hit Next we are shown the Database Disabler window. Select the check box next to the company to be disabled, I’ve selected the check box next to Fabrikam, UK, and click OK;

Database Disabler

If we close PSTL and go to User Access you’ll notice that the Fabrikam, UK company is no longer available to iang (and any other users except sa who had access);

User Access Setup

If I try to enable the company again via this window I get the following error;

Microsoft Dynamics GP - The user could not be added to one or more databases.

And when I log in as iang, the company is no longer available for selection;

Company Login

To re-enable the company, load PSTL, access the Database Disabler, remove the check and click OK;

Database Disabler

In User Access, all users who previously had access to the company will automatically have it regranted;

User Access Setup

The thing to remember is that the Database Disabler disabled the company for all users other than sa; so if you have some database maintenance to do you can switch access off and perform the maintenance using the sa user while keeping all other users out of that company.


This was originally posted here.

Comments

*This post is locked for comments