[Company Logo Image] 

Home Up Contents Coffee Break Credits Glossary Links Search

 
Migrating a SQL Server database from Windows to Linux

 

 

Home
Analysis Services
Azure
CLR Integration
High Availability
Open Source
Security
SQL Server 2008
SQL Server 2012
SQL Server 2014
SQL Server 2016
SQL Server 2017
SQL Server 2019
Tips
Troubleshooting
Tuning

Migrating a SQL Server database from Windows to Linux.


Applies to: SQL Server 2017, Red Hat Enterprise Linux Server 7.3.


On this article we are showing how to migrate a SQL Server database from a SQL Server 2012 instance installed on Windows Server to a SQL Server 2017 instance installed on Red Hat Enterprise Linux.

We created a backup of the SQL Server 2012 instance and copy the backup file (.bak) to the /var/opt/mssql/data/ folder on the Red Hat Linux computer using sftp.

After that we just performed a restore command using SQLCMD as shown below:


 





 

 


Now, let's run a simple SELECT statement over the newly restored database.

 

 

 

 

 

.Send mail to webmaster@sqlcoffee.com with questions or comments about this web site.