PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

MS SQL Server

I have a database that is distributed as an MS SQL Server backup file. I need to read this file and save it under my own format. As MS SQL Server costs money, I certainly don't want to have to purchase it just to access this one data file.

Anyone know of a method of reading a MS SQL Server backup file? Can it be imported directly into MySQL or similar?

Thanks.

Dan East
Can't you simple install MSSQL again and import the backup and then export to csv via the GUI or using BCP (Builk Copy Program)?
Hmm... SQL Server used to be available as a 60 day trial, but MS have pulled it. I'd suggest finding a friend (or even a friendly web admin) running MS SQL and talk them into doing an import and then an export in a format MySQL can recognise.
Anonymous wrote:Can't you simple install MSSQL again and import the backup and then export to csv via the GUI or using BCP (Builk Copy Program)?


This database is distributed as an MS SQL Server backup. That is just the "format" they choose to distribute the data in. I have never used SQL Server.

David, I may have to go that route if there is no direct path from a MS SQL backup into SQL Server.

I did find this:
http://www.kofler.cc/mysql/mssql2mysql.html

So if you have both servers running on a Windows box then you can use that VB program to export it from SQL Server to MySQL.

Dan East
How big is the backup file? I'd be happy to convert it to MS Access etc and send back to you if you want.

PS. Even if the backup file is large it will compress really well with zip because usually the backup file contains a lot of unused space.
A possibility might be to use MSDE - it's a "free" version of SQL Server, but has no user interface. However there are system stored procs to restore from backup. Not sure if you can do the exporting without user interface though. You could write an app that queries the syscolumns etc tables and build your own export, but if it's just a once-off, would be much easier just to use the real SQL Server.
Okay, I have MSDE installed. How do I go about restoring a backup? I find references online to ISQLW.exe, which I assume is a console to the SQL server. However MSDE did not include it.

Any suggestions?

Dan East
Okay, I've got the backup restored into MSDE. I'm using Toad to try and make sense of the data. So I guess at this point I need to get a good enough grasp of SQL statements to dump the data I need.

Thanks for the help!

Dan East