BACKUP DATABASE
If you are using a full Microsoft SQL Server, follow the steps below:
- Open Enterprise Manager.
- Right-click the BlackBerry Configuration Database (the default name is BESMgmt).
- Select Backup Database.
- Click Add to specify the Directory Name and File Name. Click OK to accept the settings.
- Click OK to perform the backup.
- Close Enterprise Manager.
If you are using a Microsoft SQL Server Desktop Engine (MSDE), follow the steps below:
- Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
osql -E -S <server_name>\<instance_name>
- Type the following commands in the specified order: 1> backup database <database_name> to disk = "C:\<database_name>.bak"
2> go
1> quit
- Close the command prompt.
RESTORE the BlackBerry Configuration Database
Use one of the following methods to restore the BlackBerry Configuration Database:
Method 1 - Back up and Restore the BlackBerry Configuration Database (on an SQL Server with the same directory structure)
Complete the following steps:
- Copy the BlackBerry Configuration Database backup to the C:\ path of the new SQL Server.
- Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
osql -E -S <server_name>\<instance_name>
- Type the following commands in the specified order: 1> restore database <database_name> from disk = "c:\<database_name>.bak" with recovery,replace
2> go
1> quit
- Close the command prompt.
Method 2 - Backup and Restore the BlackBerry Configuration Database (on an SQL Server with a different directory structure)
Complete the following steps:
- Copy the BlackBerry Configuration Database backup to the C:\ path of the new SQL Server.
- Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
osql -E -S <server_name>\<instance_name>
- Type the following commands in the specified order: 1> restore database <database_name> from disk = "c:\<database_name>.bak" with move "<database_name>" to "<new_path>\MSSQL\Data\<database_name>.mdf", move "<database_name>_log" to "<new_path>\MSSQL\Data\<database_name>.ldf"
2> go
1> quit
- Close the command prompt.
Method 3 - Detach and Re-attach the BlackBerry Configuration Database
Perform the following steps:
Step 1 - Stop the BlackBerry Services- Open the Windows Services. To do this, go to the Control Panel and open Administrative Tools>Services.
- Stop each service that has a name that begins with BlackBerry.
Step 2 - Move the BlackBerry Configuration Database files to the new SQL Server
If you are using full SQL Server, complete the following:
- Log in to the original SQL Server.
- Open Enterprise Manager.
- Right-click the BlackBerry Configuration Database.
- Select All Tasks and click Detach Database.
- Close Enterprise Manager.
- Navigate to the SQL Data directory and make a copy of the MDF and LDF files. The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\ and the default filenames are BESMgmt.mdf and BESMgmt.ldf.
- Move the file copies to the new SQL Server.
- Log in to the new SQL Server.
- Open Enterprise Manager.
- Right-click the BlackBerry Configuration Database.
- Select All Tasks and click Detach Database.
- Move the files you copied in step 6 into the SQL Data directory. When prompted to overwrite the files, click Yes.
- In Enterprise Manager, right-click the Database folder and click All Tasks.
- Select Attach Database.
- Select the MDF file to attach and click OK.
- Close Enterprise Manager.
If you are using MSDE, complete the following:
- Log in to the first MSDE Server.
- Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
osql -E -S <server_name>\<instance_name>
- Type the following commands in the specified order: 1> exec sp_detach_db @dbname = "<database_name>"
2> go
1> quit
- Navigate to the SQL Data directory and make a copy of the MDF and LDF files. The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\ and the default filenames are BESMgmt.mdf and BESMgmt.ldf.
- Move the file copies to the new SQL Server.
- Log in to the new MSDE Server.
- Type osql -E at a command prompt.
Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:osql -E -S <server_name>\<instance_name>
- Type the following commands in the specified order: 1> exec sp_detach_db @dbname = "<database_name>"
2> go
2> quit
Move the files you copied in step 4 into the SQL Data directory. When prompted to overwrite the files, click Yes.
- Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
osql -E -S <server_name>\<instance_name>
- Type the following commands in the specified order: 1> exec sp_attach_db @dbname = "<database_name>",
2> @filename1 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\<database_name>.mdf",
3> @filename2 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\<database_name>.ldf"
4> go
1> quit
- Close the command prompt.
All of this is a cut-n-paste from Blackberry.com
Try searching dude. *sheesh*