MSSQL to Ubuntu – Import Database from MSSQL Export Dump

exportimportsql serversqlcmdUbuntu

I have an export file from an online database server that I need to use to generate the database locally on my system. I'm running MSSQL 2017 on Ubuntu 16.04.

The export file has Program(application/octet-stream) in file properties dialogue box.

I want to use this file with SQLCMD command-line tool. Is it possible? If yes, how to do it? Please inform me if there's anything else I can specify before closing this question, if it seems vague or anything.

Best Answer

The problem was that the export dump file didn't have any extension and the SQLCMD couldn't recognize the file and didn't accept it.

I added the a .bak extension to the file and the SQL Server Management Tool restored the database from this modified file. It's still doesn't work on Ubuntu but that's a permissions problem. I'll maybe ask a separate question or look for it if it's already asked.