- BlackBerry® Enterprise Server 4.0 and 4.1 for IBM® Lotus® Domino®
- Microsoft® SQL Server
To move the BlackBerry Enterprise Server Configuration Database to another Microsoft® SQL Server™ or from Microsoft SQL Server Desktop Engine (MSDE) to a Microsoft SQL Server, it is recommended to first copy down the Server Routing Protocol (SRP) ID, SRP authentication key and Client Access License (CAL).
Note: Please make sure that the appropriate Microsoft SQL Server permissions are in place before starting. For more information on required Microsoft SQL Server permissions, please see the BlackBerry Enterprise Server for IBM Lotus Domino Installation Guide.
Important: Restarting certain BlackBerry Enterprise Server services will delay email message delivery to BlackBerry smartphones. For more information, see KB04789.
Complete the following steps:
- Stop all instances of the BlackBerry Enterprise Server that are connected to the BlackBerry Configuration Database.
- Back up the BlackBerry Configuration Database by completing one of the following two procedures:
In Microsoft SQL Server Enterprise Manager
- Right-click the BlackBerry Configuration Database name (for example, BESMgmt) and click All Tasks.
- Select Backup Database.
- Click Add and specify a backup directory and file name.
- Click OK.
- Click OK again to create the backup.
In a command prompt
- Type osql -E and press ENTER.
- Type the following commands in the specified order:
1> backup database <database_name> to disk = 'C:\<database_name>.bak'
where <database_name> is the name of the BlackBerry Configuration Database (for example, BESMgmt).
2> go
1> quit
- Close the command prompt window.
- Stop the Microsoft SQL Server service for the current Microsoft SQL Server.
- Create a new, blank BlackBerry Configuration Database. This step is needed in order to update the schema of the new Microsoft SQL Server. This database will be deleted later.
- On the BlackBerry Enterprise Server, go to Start > Programs > BlackBerry Enterprise Server > BlackBerry Server Configuration.
- On the Database tab, select Change Database.
- Enter the information for the new Microsoft SQL Server.
- Enter a name for the new database. This name must not match the name of the existing database.
- Complete the rest of the wizard, entering the SRP ID, authentication key, and CAL.
- Deselect the Start Services option.
- Attach the new BlackBerry Configuration Database.
- Copy the MDF and LDF files from the original Microsoft SQL Server to the Data directory on the new computer.
- Attach the database by completing one of the following two procedures:
In Microsoft SQL Server Enterprise Manager
- Right-click the BlackBerry Configuration Database folder and click All Tasks.
- Click Attach Database.
- In the <database_name>.mdf file, click OK.
- Click OK.
In a command prompt
- Type osql -E and press ENTER.
- Type the following commands in the specified order:
1> EXEC sp_attach_db @dbname = 'BESMgmt',
2> @filename1 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\BESMgmt.mdf",
3> @filename2 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\BESMgmt.ldf"
4> go
1> quit
- Close the command prompt.
- Change the Database to point to the correct BlackBerry Configuration Database.
- On the BlackBerry Enterprise Server, go to Start > Programs > BlackBerry Enterprise Server > BlackBerry Server Configuration.
- On the Database tab, select Change Database.
- Enter the information for the new Microsoft SQL Server.
- Enter the correct BlackBerry Configuration Database name.
- Select the checkmark for the Start Services option.
- In the Open Database Connectivity (ODBC) Data Source Administrator of the Microsoft Administrative Tools, click the System DSN tab.
- From the System Data Sources, select the BlackBerry Configuration Database and click Configure.
- From the Which SQL server do you want to connect to? drop-down list, choose the correct MSDE or Microsoft SQL Server.
- Click Next and verify the other options are set correctly.
- When the ODBC Microsoft SQL Server Setup window appears, click Test Data Source to establish proper connectivity to the BlackBerry Configuration Database.
- After the process is complete, close the open windows.
- Detach the blank database by completing one of the following two procedures:
In SQL Server Enterprise Manager
- Right-click the BlackBerry Configuration Database name and click All Tasks.
- Click Detach Database.
In a command prompt
- Type osql -E and press ENTER.
- Type the following commands in the specified order:
1> exec sp_detach_db @dbname ="<database_name>"
2> go
1> quit
- Close the command prompt window.
If running BlackBerry Enterprise Server 4.1, install the Database Notification System by completing the following procedure:
- Extract the BlackBerry Enterprise Server installation software to a temporary location.
- Copy the RimEsp.dll file to C:\Program Files\Microsoft SQL Server\MSSQL\Binn.
- In SQL Query Analyzer, browse to the \Database\DBInstallScripts\SQLServer\4.1 folder of the extracted installation software from Step 1.
- Open the NotifyInstall.sql file and replace <_DATABASENAME_> with the name of the BlackBerry Configuration Database.
- Run the NotifyInstall.sql script.
Note: Confirm the Query Analyzer displays the message ?Function dbo.xp_RIM_xxxx registered?.
Disclaimer
By downloading, accessing or otherwise using the Knowledge Base documents you agree:
(a) that the terms of use for the documents found at www.blackberry.com/legal/knowledgebase apply to your use or reference to these documents; and
(b) not to copy, distribute, disclose or reproduce, in full or in part any of the documents without the express written consent of RIM.
Visit the BlackBerry Technical Solution Center at www.blackberry.com/btsc.

