You are viewing limited content. For full access, please sign in.

Question

Question

Error 42000: Permission Denied in database 'master'

asked on May 21, 2015

Hello, I am doing an implementation of a brand new client and have come across an error in Forms setup.

 

When attempting to create the new database - I'm calling it LF_Forms - I get the following error message:

-=-=-=-=-=-=-=-=-=-

ERROR [42000] [Microsoft][SQL Native Client][SQL Server]CREATE DATABASE permission denied in database 'master'.

-=-=-=-=-=-=-=-=-=-

 

I've attached a screenshot so that you can see the setup. This is for LF 9.2

 

TIA,

Paul

Capture.PNG
Capture.PNG (173.41 KB)
0 0

Answer

APPROVED ANSWER
replied on May 22, 2015

The windows account you're using for the forms routing service doesn't have "create database" rights in the database server.  Some people create username/password combinations for this purpose but I prefer to stick with "windows authentication" by creating a service account for Laserfiche services and then giving that account rights on the database server.  

Another solution is to create the database first (using an appropriate account)  then selecting the database. 

 

1 0
replied on May 31, 2015

Thanks Ben. Yes, I got my account names mixed up. All working now :)

0 0
replied on November 20, 2017

Hi Ben, thank you for your help.

I know this is about MSSQL but could you please give us a tuto?

Idk how to create a service account for Laserfiche services and then give that account rights on the database server.

 

Thanks in advance.

Regards

0 0
replied on November 20, 2017

Here's a quick set of steps. It gives the account the highest rights on your network, which is NOT recommended in a production environment but it's quick and effective for thie set of instructions.

1. create a service account. Add it to the Administrators group.

2. Create a SQL login for the new windows account.

3. Give it SYSADMIN rights.

4. Finally configure the forms service to use the new account and click OK when Windows asks to give it the Log on As A Service right.

1 0
replied on November 20, 2017

Hi Ben,

Thank you for your help. My mistake wasn't about MSSQL. Sorry for the inconveniance.

 

During the LFF's installation, I selected "Default Account" for my Application Pool.

Under IIS, I need change the FormsAppPoll's identity from "ApplicationPoolIdentity" to "LocalSystem" then restart IIS.

 

This resolved my probleme.

Thank you anyway.

3 0
replied on April 16, 2018

Thanks, this step is easy to overlook.  The identify of the account creating the DB is not very clear.

0 0
replied on May 24, 2018

Follow on note - using SQL Server 2017 (V14) we found that we also had to grant Local System "Create Any Database" permissions in Security, Securables.  Having done that, we then revoked the permission, and checked the Local System permission for the database in User Mapping.  It retained dbo.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.