Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Oracle/MSSQL/MySQL » How to use a dedicated MsSQL Db for Pleasant Password
  • images 2 1
    How to create an AMI using AWS console AWS/Azure/OpenShift
  • 1 pUEZd8z  1p 7ICIO1NZFA
    The package python-virtualenv has no installation candidate error Linux
  • Blog inside@2x
    How to block automatic delivery of Microsoft Edge Chromium-based Windows
  • Clickable icons Edge Browser
    Remove clickable icons from the Edge browser JIRA|Confluence|Apps
  • How to Migrate Windows Servers from Hyper V to Proxmox Correctly
    Migrate Windows Servers from Hyper V to Proxmox Correctly Backup
  • Manage OU
    Delete or Rename and Create a Protected Organisation Unit in AD Windows Server
  • On ubuntu mariadb
    How to install MariaDB on Ubuntu Linux
  • VMware
    The validation process found problems on the server to which you want to install features, the features are not compatible with the current configuration of your server Virtualization

How to use a dedicated MsSQL Db for Pleasant Password

Posted on 14/08/201921/03/2024 Christian By Christian No Comments on How to use a dedicated MsSQL Db for Pleasant Password
How to use a dedicated MsSQL Db for Pleasant Password

In this article, we will discuss How to use a dedicated MsSQL Db for Pleasant Password. Microsoft SQL Server is a relational database management system developed by Microsoft. As a database server, it is a software product with the primary function of storing and retrieving data as requested by other software applications. Pleasant Password Server can be virtualized and will require sufficient resources (CPU and Memory) to run. Please see How to import Users and Groups into Pleasant Password Manager, and How To Use Pleasant Password Private Folder.

Here is a link to the Live Demo. Here are some things you should be aware of before you decide to use a dedicated MsSQL Db for Pleasant Password.

Server requirements

Windows Server 2019 (including Server Core), 2016, 2012, 2008, and
Windows 10, 8.

Also, see How to use the Pleasant Password Server tool, Migrate Veeam MSSQL Database to a new MSSQL Server, and Object First OOTBI Appliance Quick Setup

Supported Databases

For user requirements on the right server type to install to support your deployment

  • SQLite
  • MS SQL
  • PostgreSQL 9.0 or higher
  • Microsoft Azure SQL DB
  • Microsoft .NET Framework 4.5+ is required (installed for you)
  • Supported versions of IIS or IIS Express:

Server Hardware Requirements

For user requirements on the right server type to install to support your deployment. For Medium installation

  • Quad-Core 2 GHz or higher
  • 8 GB RAM

Create a database

MS SQL Installation: See this link below for the needed steps to have MS SQL installed and running.

Part A: Steps to provision a new MS SQL server.

Prepare or create a new MS SQL instance. Also, install the Management Studio to administer the database

Note: This step requires you to back up your Pleasant Password Manager and Encrypting the new database before proceeding to switch to another database.

  • Now, we will have to encrypt the database using the information below.
  • Since I am using MS SQL: The database will be encrypted using “TDE Encryption as it is fully supported by Pleasant Password Server”.
    Note: Ensure you have the SQL user create already with the necessary role if you are not using Windows Authentication in order to be able to connect to the database.
  • Assign (select the user mapping and set it to db_owner (database role membership)
  • Therefore: By default the Pleasant Password Server built-in SQLite database is encrypted. For an alternate database, be sure to follow the steps or links below to configure the encryption for your alternate database (i.e. PostgreSQL, SQL Server, Azure)

Part B: Switch Databases

After the installation of MS SQL Server installation, you can decide to switch to another database

Do not follow these steps if you would like to use the default SQLite database (ignore this step below. By default, Pleasant Password Server includes a Securely Encrypted SQLite database on the designated computer). But if you would like to use a different Db order than the default Db, please follow the steps below.

Note: It’s possible to replace this database with a different database type. To use the newly created MS SQL database, first, you will have to encrypt the database. Therefore follow the steps below.

Steps for MS SQL encryption

This is an easy and efficient way of encrypting the database. Run the following SQL commands on your database.

Note: First replace your values: database, password, Certificate name & subject, and encryption algorithm

Possible encryption algorithms include: AES_256, AES_192, AES_128, or TRIPLE_DES_3KEY

USE master;  
GO    
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<UseStrongPasswordHere>'; 
go  
CREATE CERTIFICATE MyServerCert WITH SUBJECT = 'My DEK Certificate';  
go  
USE MyDatabase;  
GO  
CREATE DATABASE ENCRYPTION KEY  
WITH ALGORITHM = AES_256  
ENCRYPTION BY SERVER CERTIFICATE MyServerCert;  
GO  
ALTER DATABASE MyDatabase
SET ENCRYPTION ON;  
GO 

Note: To revert the encryption, please see Pleasant Password Documentation.

Enter the new Connection String. This depends on the database you have decided to use. See this link above to see how the connection string is configured.

  • Click Save Changes and exit the Service Configuration Utility.

For MS SQL

Use this connection string type (If you don’t use this method, you will have connection issues9.

Server=YourServerNameyourInstanceName;Database=YourDatabaseName;Encrypt=TrueOrFalse;Integrated Security=SSPI;TrustServerCertificate=TrueOrFalse;

Change the Pleasant Password Server Service Account User

Note: This particular setting will not persist in an upgrade, so you have to upgrade independently. Please keep this step in your upgrade plans.

Skip this step if you are using SQL Authentication (connection string has username/password). Therefore, I am skipping this part as I have an MS SQL user account created in AD.

Start the Password Server service

Note: When using the default IIS Express, follow this step and connected to the newly created database with the connection string.

  • This will automatically create all the tables in the database and set up the default admin user.
  • Navigate to the startup website, which will launch once the installation is complete.
    Click the default server link to go to your Password Server administrative web site.

Activate the license

See how to activate the license.

Backing up Pleasant Password Server

Note: This step applies only to the SQLite database. For other databases, follow their official link (e.g., for MS SQL and Postgres SQL). Note the below before proceeding to the steps below.

  • First, copy the connection string to a safe location. You can access this connection string through the new Service Configuration Utility. You will need this key to access the encrypted database.
  • Also, pull a copy of the SQLite database file. You can find the SQLite database location and the version of the Pleasant Password Manager here.

To view the Version page in the web client (default location):

- Stop the Password Server service (copying a "live" database can cause corruption).
- Run the Service Configuration utility. (On the Windows start menu, this program can be found)
- Click Database Configuration.
- Copy the entire contents of the Connection String field to a text file (named to reflect your current version of Password Server) in a safe location. To ensure you have copied everything, expand the width of this window to see all of the text before copying.
- Copy your SQLite database file to a safe location, naming the backup to reflect your current version of Password Server (to make sure you restore using the same version).
- Close the Service Configuration utility.
- Start the Password Server service.

Note: How to locate your SQLite database. The default database location is:

Version 7+

%ProgramData%Pleasant SolutionsPassword ServerPleasantPassServer.db

Version 1-6

 %ProgramData%Pleasant Solutions
 Note: %ProgramData% is a hidden folder

I hope you found this blog post on how to use a dedicated MsSQL Db for Pleasant Password helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Oracle/MSSQL/MySQL Tags:Databases, MsSQL, PleasantPassword

Post navigation

Previous Post: DNS manager console missing from RSAT tools on Windows 10
Next Post: Assign users with rights to reset password in Active Directory

Related Posts

  • Disable Microsoft SQL Auto Close Option
    Disable SQL Auto Close: Auto Close is enabled for both ePO and ePO Events Databases Oracle/MSSQL/MySQL
  • Always on and Veeam plugin setup
    Install SQL Server Always On & Configure Veeam Plug‑in for SQL Backup
  • Screenshot 2020 06 22 at 23.27.40 1
    Install MSSQL 2019 Developer Edition and SSMS on Windows Oracle/MSSQL/MySQL
  • image 19
    Download your MySQL database from Azure to a local PC with MySQL Workbench AWS/Azure/OpenShift
  • SQL Error
    Fix “the server was not found or was not accessible: Verify that the instance name is correct and that SQL Server is configured to allow remote connections” Oracle/MSSQL/MySQL
  • tredfghgfde3456578
    How to install Java Runtime Environment on Mac OS Mac

More Related Articles

Disable Microsoft SQL Auto Close Option Disable SQL Auto Close: Auto Close is enabled for both ePO and ePO Events Databases Oracle/MSSQL/MySQL
Always on and Veeam plugin setup Install SQL Server Always On & Configure Veeam Plug‑in for SQL Backup
Screenshot 2020 06 22 at 23.27.40 1 Install MSSQL 2019 Developer Edition and SSMS on Windows Oracle/MSSQL/MySQL
image 19 Download your MySQL database from Azure to a local PC with MySQL Workbench AWS/Azure/OpenShift
SQL Error Fix “the server was not found or was not accessible: Verify that the instance name is correct and that SQL Server is configured to allow remote connections” Oracle/MSSQL/MySQL
tredfghgfde3456578 How to install Java Runtime Environment on Mac OS Mac

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • images 2 1
    How to create an AMI using AWS console AWS/Azure/OpenShift
  • 1 pUEZd8z  1p 7ICIO1NZFA
    The package python-virtualenv has no installation candidate error Linux
  • Blog inside@2x
    How to block automatic delivery of Microsoft Edge Chromium-based Windows
  • Clickable icons Edge Browser
    Remove clickable icons from the Edge browser JIRA|Confluence|Apps
  • How to Migrate Windows Servers from Hyper V to Proxmox Correctly
    Migrate Windows Servers from Hyper V to Proxmox Correctly Backup
  • Manage OU
    Delete or Rename and Create a Protected Organisation Unit in AD Windows Server
  • On ubuntu mariadb
    How to install MariaDB on Ubuntu Linux
  • VMware
    The validation process found problems on the server to which you want to install features, the features are not compatible with the current configuration of your server Virtualization

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,832 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.