The IUSR_%ComputerName% account used by IIS needs access to the BlackBerry Enterprise Server (BES) database.
This
can be accomplished via the sqlcmd command line tool or the Microsoft
SQL Server Management Studio Express graphical interface tool. Choose
either the command line version of the instructions or the graphical
interface version, they accomplish the same result.
The command line method:
- Replace %ComputerName% with the name of the computer for
the remainder of these instructions. For example, if your server is
named c3po then replace ''%ComputerName%\IUSR_%ComputerName%'' with
''c3po\IUSR_c3po''
Note: If you are running Server 2008 with IIS 7 or 7.5, replace '%ComputerName%\IUSR_%ComputerName%' with 'NT AUTHORITY\IUSR'. - Go to Start
- Open All Programs
- Open Accessories
- Launch a Command Prompt
- Enter the following three commands:
- sqlcmd -E -S LOCALHOST\MDAEMON -Q 'USE BESMgmt; EXEC sp_grantdbaccess '%ComputerName%\IUSR_%ComputerName%','iis_user''
- sqlcmd -E -S LOCALHOST\MDAEMON -Q 'USE BESMgmt; EXEC sp_addrolemember 'db_datareader','iis_user''
- sqlcmd -E -S LOCALHOST\MDAEMON -Q 'USE BESMgmt; EXEC sp_addrolemember 'db_datawriter','iis_user''
The graphical user interface method:
- Download and install Microsoft SQL Server Management Studio Express
- Download the appropriate (standard or x64) version from the Microsoft SQL Server Management Studio Express website.
- Double click on the downloaded SQLServer2005_SSMSEE.msi installer
- Click Next
- Accept the license terms and click Next
- Enter your name/company name as needed and click Next
- Click Next again, and finally Install
- Click Finish
- Launch Microsoft SQL Server Management Studio Express
- Click the Start menu
- Click All Programs
- Open Microsoft SQL Server 2005
- Launch SQL Server Management Studio Express
- Connect to Server
- Server Name: Your server should be selected by default
- Authentication: Windows Authentication (the default)
- Click Connect
- Server Name: Your server should be selected by default
- In the Object Explorer pane, expand Security
- Expand Security
- Right click on Logins and select New Login
- Click the Search button beside Login name
- Find the account that IIS runs under. If IIS is under its default account, follow these steps:
- Click Advanced
- Click Find Now
- Select the account called (or starting with) IUSR
- Click OK
- Click Advanced
- Select User Mapping
- Enable the checkmark under the MAP column beside BESMgmt
- In the Database role membershiplist at the bottom select:
- db_datareader
- db_datawriter
- db_datareader
- Click OK
- Close Microsoft SQL Server Management Studio Express
- Click the Search button beside Login name