Securing the Transactions Database
It is strongly recommended that you use Windows Authentication for access to your databases. When you configure your database connection strings for Windows Authentication, you must assign Business Desk users and run-time users (who use an anonymous domain account) the appropriate levels of access to your databases.
To help you secure the Transactions database, Commerce Server includes two security scripts: TransactionsReaderRole.sql and TransactionsWriterRole.sql. These scripts are located in the Program Files\Microsoft Commerce Server\Support folder**.**
These scripts create two roles on the Transactions database, and assign the necessary permissions to the tables and stored procedures:
- TransactionsReaderRole. Assign run-time users to this role.
- TransactionsWriterRole. Assign design-time users to this role.
To create and run the TransactionsReaderRole and TransactionsWriterRole
Click Start, point to Programs, point to Microsoft SQL Server, and then click SQL Query Analyzer.
In the Connect to SQL Server dialog box, specify the appropriate SQL server.
In Query Analyzer, in the database drop-down box, select the Transactions database.
Click File, and then click Open.
Navigate to the scripts located in the Program Files\Microsoft Commerce Server\Support folder, and select TransactionsReaderRole.
The script opens and the code appears in the Query Analyzer window.
On the toolbar, click to run the script against the Transactions database.
Repeat these steps to run the TransactionsWriterRole script.
After you create the roles, assign the anonymous run-time user account and the Business Desk group account to the appropriate roles. For instructions, see Assigning SQL Server Database Roles.
The TransactionsReaderRole and TransactionsWriterRole scripts create the two roles and grant permissions on the following Transactions tables and stored procedures.
Table name | TransactionsReaderRole (Run-time users) |
TransactionsWriter Role (Business Desk users) |
---|---|---|
|
Select Insert Update Delete |
Select Delete |
|
Select Insert Update Delete |
Select Insert Update Delete |
|
No access | Select Insert Update Delete |
|
Select Insert Update |
No access |
|
Select Insert Update |
Select Delete |
|
Select Insert Update |
Select Delete |
|
Select Insert Update |
Select Delete |
|
Select Insert Update |
Select Delete |
|
No access | No access |
|
No access | No access |
|
Select Insert Update Delete |
No access |
*TransDimension is used by the Transaction data import Data Transformation Services (DTS) task. For more information, see ETL Process for Transaction Data Import DTS Task.
Stored Procedure
There is only one Transactions stored procedure: OrderSummaryProc. Neither run-time users nor design-time users require access. This stored procedure is called by the OrderGroupManager.GetOrderSummary script.
Copyright © 2005 Microsoft Corporation.
All rights reserved.