How To Disable A Database Using PSTL

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.

Ian Grieve

About Ian Grieve

Ian is a Microsoft Dynamics GP certified consultant specialising in the delivery of Microsoft Dynamics GP projects and currently working for Perfect Image Ltd., a Microsoft Partner and VAR in the North East of England. Ian has worked with Microsoft Dynamics GP since 2003 and, over the nine years since, has dealt with all aspects of the product life-cycle from presales, to implementation, to technical and functional training, to post go-live support and subsequent upgrades and process reviews. In his spare time, Ian runs the azurecurve | Ramblings of a Dynamics GP Consultant blog dedicated to Microsoft Dynamics GP and related products.
This entry was posted in Dynamics, GP, Microsoft, Professional Services Tools Library and tagged , , , , , , , , . Bookmark the permalink.

2 comments on “How To Disable A Database Using PSTL

  1. Pingback: How To Disable A Database Using PSTL | Interesting Findings & Knowledge Sharing

  2. Pingback: How To Disable A Database Using PSTL | azurecurve - DynamicAccounting.net - GP Technical Blogs - Microsoft Dynamics Community

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>