AlarmBiller to Managely Data Conversion

1. AlarmBiller Server
  1. Log into AB server: 170.20.1.92
  2. Open SSMS
  3. Locate ABDealerXXXXX
  4. Navigate to D:\Data\..AB_to_MG Scripts
  5. Run script UserIdMappingExtract
  • Select all cells in the results window
  • Right click in results panel and click  Copy with Headers
  • On your workstation, open a blank Excel workbook and paste the results from the step above into the blank worksheet
  • Save Excel workbook as [BROWSE TO YOUR OneDrive]\EmployeeUserId.csv
  1. Run Extract_Doc_Encryption_Key, copy the Document Encrytion Key and save to a .txt file
  2. Backup DB to: D:\Data\[YOUR FOLDER]\ABDealerXXXXXX_Date_YourInitials.bak
  • Settings for backup
  • Media Options: click on “Overwrite all existing backup sets”
  • Backup Options: Set backup compression to Compress backup
  1. Transfer backup to your workstation using your OneDrive through Chrome
2. AlarmBiller Document Server
  1. Log into AB Doc Server
  2. Navigate to ABDocStorage
  3. Navigate to ABDealerXXXXXX
  4. Right click and choose SendTo>Compressed to Zip
  5. Transfer zip file to your workstation using your OneDrive through Edge

Sign out of both servers. DO NOT JUST CLOSE THE WINDOW, MAKE SURE YOU SIGN OUT!

3. Managely Server
  1. Log into MG Server
  2. Open SSMS
  3. Locate ABDealerXXXXX database
  4. Run this query in SSMS to verify you are in the correct database Select * From sDealer
  5. Backup DB to: D:\DBBackup\[YOUR FOLDER] ABDealerXXXXXX_Date_YourInitials.bak
    • Settings for backup
      • Media Options: click on “Overwrite all existing backup sets”
      • Backup Options: Set backup compression to Compress backup
  6. Transfer backup file to your workstation using OneDrive through Chrome
  7. Download backup file to your workstation from OneDrive
  8. Mount Managely and AlarmBiller databases to SSMS on your workstation
  9. Run 1_aChargesGroupMigration on AlarmBiller database
  10. Run 1.2_aWarehousePartQuantityOnHandMigration on Managely database
4. Conversion of AlarmbBiller Database to Managely Database
  1. Open SQL Compare 14
  2. On the left side choose Database
    • Choose your server where the Managely backup is located
    • Choose your database name
  3. On the right side choose Database
    • Choose your server were the AlarmBiller backup is located
    • Choose your database name
  4. Click Compare Now
  5. When comparison completes click Ok
  6. Check box next to “Object Name” to select all objects
  7. Click Deploy
  8. On the next screen click Next
  9. On the next screen click Deploy
  10. On pop up click Deploy Now
    • If deployment fails, determine the cause of failure and make your changes to the AlarmBiller database
    • After you’ve made any necessary changes, click Ok in SQL Compare 14
    • Click Close
    • Click Refesh
    • Repeat steps 4 through 10
  11. Click Ok
  12. Click Ok
  13. Close SQL Compare 14
5. Updates to AlarmBiller Databased Needed in Managely
  1. Run scripts #2 through #11 and #13-#15
    • If Script #6 fails with duplicate key error, navigate to that portion of the script and add a “0” to the end of the GL Account Number
  2. Backup AlarmBiller database as ABDealer[Managely DealerId)_CONVERTED_Date_YourInitials.bak
    • Settings for backup
      • Media Options: click on “Overwrite all existing backup sets”
      • Backup Options: Set backup compression to Compress backup
  3. Transfer new backup to your OneDrive
  4. Return to Managely server
  5. Download new backup and EmployeeUserId.csv (file from step _) from your OneDive through Chrome to D:\DBBackup\[YOUR FOLDER]
  6. Open SSMS
  7. Locate ABDealerXXXXX
  8. Restore ABDealerXXXXX with new back
    1. Restore settings
      1. Options: Check Overwrite the existing database (WITH REPLACE)
  9. Open script #12 on your workstation and replace Document Encryption Key with Document Encryption Key from step 1.6
  10. On Managely server open a new query window
  11. Copy script #12 to new query on Managely server and execute
  12. Right click on restored ABDealerXXXXX choose Tasks > Import Data
    1. Settings to Import Data
      • Data Source: Flat File Source
      • Browse to D:\DBBackup\[YOUR FOLDER] (change drop down in file explorer window from .txt to .csv)
        • Select EmployeeUserId
      • Text Qualifier: “
      • Advanced: select all column names, change Data Type from string [DT-STR] to text stream [DT_TEXT]
      • Click Next
    2. Settings to Import Data
      • Destination: SQL Server Native Client 11.0
      • Click Next
      • Click Next
      • Click Finish
      • Click Finish
      • When complete, click Close
  13. Navigate to D:\DBBackup\AB_to_MG
  14. Open and Execute UpdateUserId script
6. Managely Document Server
  1. Log into MG Doc Server
  2. Download zip file from OneDrive to D:\ABDealerXXXXX
  3. Extract files
  4. Copy files from extracted zip file
  5. Click “Yes” to overwrite existing files
Sign out of both servers. DO NOT JUST CLOSE THE WINDOW, MAKE SURE YOU SIGN OUT!
Was this article helpful?
Thank you for your feedback!
User Icon

Thank you! Your comment has been submitted for approval.