I need to dig through a SQL Server database and the dump I’ve been given seems to be a binary file rather than the usual text-based SQL statement dump I’m used to with MySQL and Postgres.
Is this the usual way SQL Server databases are exported or is this some sort of problem? If the former, is it possible to turn this into the SQL text file that I’m used to so I can look through it? Or could I just ask the guy who gave it to me to export it in text rather than binary?
There is no single thing that “MSSQL dump” might refer to really.
You need to know what you’ve actually been given. Is it an MSSQL backup file (usually a .bak) or simply a detached database (.mdf)?
If the former, it can be restored using SQL Management Studio, if the latter, it can just be re-attached.
There is no simple way to get from a backup to a SQL script of
INSERTcommands etc. You will have to restore it onto a SQL server, then export to SQL either using DTS, or the SQL Server Management Studio.Note, however, that there are no guarantees that the SQL will be compliant with MySQL or any other SQL product.