Migrate SQL Express to SQL Server

check Best Answer

  • That would most likely work, but it does have some risk. There is a slight risk that the files cannot be reattached if the database does not shut down cleanly. A safer approach would be to back up the database and then restore it on the new server.

    Don't forget to move things that are not contained in the database. This includes logins, linked servers, server-level permissions, server-level configurations, etc.

    1 found this helpful thumb_up thumb_down

  • View Best Answer in replies below

    2 Replies

    • That would most likely work, but it does have some risk. There is a slight risk that the files cannot be reattached if the database does not shut down cleanly. A safer approach would be to back up the database and then restore it on the new server.

      Don't forget to move things that are not contained in the database. This includes logins, linked servers, server-level permissions, server-level configurations, etc.

      1 found this helpful thumb_up thumb_down

    • Migrate SQL Express to SQL Server

      Two easy ways to move a database from one server to another server

      1. Detach the database from the old server and attach it in the new server. This is a offline operation and it moves the database instead of copying it.

      2. Backup the database in the old server and restore it in the destination server. This can be performed during online and it creates a new database in the destination server.

      Was this post helpful? thumb_up thumb_down

    CTX318273

    {{tooltipText}}

    Article | How To / General Question Director 3rd party / compatibility | {{likeCount}} found this helpful | Created: {{articleFormattedCreatedDate}} | Modified: {{articleFormattedModifiedDate}}

    Objective

    Steps to Migrate the Citrix Database from Old SQL Express Server to New Full SQL Server 


    Instructions

    How to Migrate Citrix Database from SQL Express Server to SQL Server 2019

    Note : Take snapshots of the Delivery Controllers and Citrix Database Full Backups before making changes.

    1. Install SQL Express Management Studio on Delivery Controller where you have your Citrix Database Installed using the link : https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15

    2. Open the SQL management console and check if you are able to see your Citrix Databases Site, Monitoring and Logging.

    3. Take a Complete/Full Backup of Citrix Databases from the  management Console.

    4. Export and Import the Citrix Databases to the new SQL Server.

    5. Then add SQL logins corresponding to the Computer Accounts for your Delivery Controllers and grant them specific roles in the restored database.

    6. You can find the Computer Accounts of Delivery Controller under SQL Express Management Console > Security  (*Add these Computer accounts on new database Server as well)

    7. Make Sure you add the User Admin Account as SysAdmin and DbOwner roles.

    E.g. 
    For Adding USER1 as Admin as SysAdmin, login to the SQL Management Console > Security > Add USER1 > Assign SysAdmin Role 
    For Adding USER1 as Admin as DbOwner, login to the SQL Management Console > Databases > Citrix Site Database>  Security > Add USER1 > Assign Db_Owner Role

    8. Now you will need to change the connection strings to point to new SQL Server by following the Manual Settings under the following article :

    https://docs.citrix.com/en-us/advanced-concepts/implementation-guides/database-connection-strings.html#update-strings-manually

    Note : Make Sure you shut down the second, Third and so on  controller Server in case you have multiple Delivery Controllers and only make changes to the First Controller.

    9. After the first Server is completed with Connection Strings you need to reboot and open the studio to see if that works .

    10. Now you may follow the same steps in point 8 and continue with other Controllers 1 by 1 .

    # For any further help if the issue still persist you may reach out to Citrix Technical Support .


    Additional Resources


    Disclaimer

    Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

    How to migrate SQL Express database to SQL Server?

    Get a new server install SQL Server standard on it. Take user database backup from SQL Server express, move it and restore it on standard edition. ... .
    You do an inplace upgrade of SQL Server express to standard edition..

    How to restore SQL Express database to SQL Server?

    Restoring the Data To recover the data from one of the backups: Open SQL Server Management Studio Express. Expand Databases, then right-click the application database. Choose Tasks > Restore > Database.

    How to convert SQL Express to standard?

    Upgrade Microsoft SQL Express to Microsoft SQL Standard or Higher.
    Run the full version of SQL setup application..
    Select Maintenance > Edition Upgrade..
    Select the AutodeskVault instance and start the upgrade..

    Is SQL Express different from SQL Server?

    SQL Server Developer is an ideal choice for people who build and test applications. SQL Server Express edition is the entry-level, free database and is ideal for learning and building desktop and small server data-driven applications.