The title is self explanatory. Is there a way of directly doing such kind of importing?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The .BAK files from SQL server are in Microsoft Tape Format (MTF) ref: http://www.fpns.net/willy/msbackup.htm
The bak file will probably contain the LDF and MDF files that SQL server uses to store the database.
You will need to use SQL server to extract these. SQL Server Express is free and will do the job.
So, install SQL Server Express edition, and open the SQL Server Powershell. There execute
sqlcmd -S <COMPUTERNAME>\SQLExpress(whilst logged in as administrator)then issue the following command.
This will list the contents of the backup – what you need is the first fields that tell you the logical names – one will be the actual database and the other the log file.
At this point you have extracted the database – then install Microsoft’s ‘Sql Web Data Administrator’. together with this export tool and you will have an SQL script that contains the database.