How can we help you today? How can we help you today?

Best way to install DLM automation

Hi, we are in the process of migrating our build and deployment environments to new servers.

Our build server makes a snapshot that is used by the deployment server whenever a customer decides to upgrade (in sync with a client application).

On the old build server I had installed the toolbelt and activated it with SQLCompare.exe /activateSerial:###-###-#####-####
However the /activateSerial commandline seems to be unsupported on the latest version?

On the new deployment server our admin installed a version using powershell Install-Module SqlChangeAutomation.
however this appears to be an older version since we get this message: "The database snapshot was saved by a newer version of SQL Compare"

The deployment server has no UI (windows core), the build server does have a UI, so my questions are:

- What is the recommended way to install the DLM automation tools on both servers?
- How can I deactivate the old server and activate the license on the new server?

Best regards,
Louis
LouisSomers
0

Comments

7 comments

  • LouisSomers
    I tried upgrading the DLM tools:
    Update-Module SqlChangeAutomation<br>
    <br>
    Untrusted repository<br>
    You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the<br>
    modules from 'PSGallery'?<br>
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A<br>
    <br>
    License Acceptance<br>
    Any use of this software is subject to the terms of the Redgate Standard EULA:<br>
    see https://www.red-gate.com/sca/EULA/PowershellModule<br>
    <br>
    INFORMATION - Use of SQL Change Automation requires<br>
    licensing in line with the Redgate End User License Agreement.<br>
    See&nbsp;Red-gate.com/EULA&nbsp;for more information.<br>
    Do you accept the license terms for module 'SqlChangeAutomation'.<br>
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y

    But that had no effect.
    SQL Compare Command Line V13.6.6.8310<br>
    =============================================================================================================================================================================================================<br>
    Copyright c 1999 - 2018 Redgate Software Ltd<br>
    <br>
    DLM Automation: in trial, expires 2023/02/20 15:30:08 +01:00<br>
    Automation License: in trial, expires 2023/02/20 15:30:08 +01:00<br>
    Registering data sources<br>
    <br>
     -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-<br>
    Console Error Output (StdErr) :<br>
    Error: Comparison of '.' and 'MACHINE\SVR' failed: The database snapshot was saved by a newer version of SQL Compare<br>
    Comparison of '.' and 'MACHINE\SVR' failed: The database snapshot was saved by a newer version of SQL Compare<br>
    RedGate.Legacy.CommandLine.FatalExecutionException<br>
       at RedGate.SQLToolsCommandLine.CommandProcessor.FatalExceptionHelper(String message, Exception ex)<br>
       at RedGate.SQLToolsCommandLine.CommandProcessor.RunComparison()<br>
       at RedGate.SQLToolsCommandLine.CommandProcessor.Run()<br>
    Caused by:<br>
      The database snapshot was saved by a newer version of SQL Compare<br>
      RedGate.SQLCompare.Engine.Registration.ReadFromSnapshot.UnsupportedSnapshotException<br>
         at RedGate.SQLCompare.Engine.Database.LoadFromReader(NullableBinaryReader reader, Database originalForMappings, Nullable`1 options)<br>
         at RedGate.SQLCompare.Engine.Database.LoadFromStream(Stream f, Database originalForMappings, Nullable`1 options)<br>
         at RedGate.SQLCompare.Engine.Database.LoadFromDisk(String fileName, Database original, Nullable`1 options)<br>
         at RedGate.SQLCompare.Common.CompareEngineExecutor.DoRegisterDatabaseForCompare(Database database, SnapshotSource dataSource)<br>
         at RedGate.SQLCompare.CommandLine.CommandLineCompareEngineExecutor.DoRegisterDatabaseForCompare(Database database, SnapshotSource dataSource)<br>
         at RedGate.Legacy.ProgressTasks.ProgressTask.ExecuteSubTasks()<br>
         at RedGate.Legacy.ProgressTasks.SimpleProgressTaskExecutor.DoTasks()

    How do I install V 14 without a GUI?
    LouisSomers
    0
  • David Atkinson
    Yes, the licensing of the SQL Compare command line has indeed changed. Could you try the /allUsers switch as described here.

    David Atkinson
    0
  • LouisSomers
    Thank you. I finally managed to install Sql Compare 15 by extracting the MSI file form SqlToolbelt and then installing it on the deployment server using an msiexec commandline.

    Then I tried to activate it with the /allUsers option which does not give the unsupported error any more.
    Only I run into this problem:
    "All 5 of the entitlements for serial #### have already been claimed. Login to www.red-gate.com to view your licenses."

    I logged in but cannot see any seperate DLM license (we used to have one).

    Is it still possible to run the DLM tools on a server with a toolbelt license (it used to be included) or will we now have to get extra licenses for the build and deployment servers?
    LouisSomers
    0
  • Robyn
    Hi Louis, 

    I have just adjusted your license which should get rid of the below message; 
    "All 5 of the entitlements for serial #### have already been claimed. Login to www.red-gate.com to view your licenses."

    Please could you try exactly the same steps again and let us know whether it is successful for you? 

    You also mentioned that you don't see a DLM license anymore. DLM was replaced by SQL Change Automation which you should see listed in your SQL Toolbelt bundle.
    Robyn
    0
  • LouisSomers
    I tried it now, but I get exactly the same message.
    LouisSomers
    0
  • Victoria W
    Hi @LouisSomers

    Apologies, can you try again please, it should work now.
    Victoria W
    0
  • LouisSomers
    Hi Victoria,
    Sorry, RedGate has handled this privately via email (support ticket #285091).
    It's all registered and working now.
    I should have closed this.
    Thanks again,
    Louis
    LouisSomers
    0

Add comment

Please sign in to leave a comment.