Back

Topic

[KB869]SQL SERVER 2012 USER RIGHT

Tags: HDS, SQL Server

6 years ago
By RM
Options
Print
Applies to:

PcVue 11.0 onwards when using SQL Server 2012


Summary:

The HDS is unable to record in SQL Server 2012 database when PcVue is started with a User with minimal rights.
Originator: RB


Details:

Minimum Server role : public

Minimum Right on database: dbreader and dbwriter

Since SQL Server 2012 this minimupm right are not suffisant due to a change from SQL Server in the way to connect to Database engine.

When the HDS connects to a database, the SQL Data Management Objects (SQLDMO) driver makes an SQL request using the stored procedure sys.sp_MSdbuserpriv. For earlier versions of SQL server (SQL Server 2008 for example) this works fine, but for SQL Server 2012 the request is rejected and the HDS fails to connect. The problem is due to a change in the user rights required to run the procedure.

The solution is to give the User, that started PcVue, the rights to execute this procedure. This is done in two steps.

1. Map the User to the database using the Guest schema. You must check with the System Administrator if this is acceptable.

2. Give the User the Execution right to the stored procedure sys.sp_MSdbuserpriv.



Additional Info

Created on: 21 Jun 2018 Last update: 30 May 2024