SQL - How to backup a database and export as a MDF file with MS SQL 2008 R2

后端 未结 8 1615
故里飘歌
故里飘歌 2021-02-01 16:24

I have created a database \"test\" with some tables in MS SQL Server 2008 R2 (i.e. MS SQL Server Management Studio).

Now, I need to export this database as a MDF file.

8条回答
  •  故里飘歌
    2021-02-01 16:32

    If what you want is a replica of your SQLEXPRESS/MDF local file- on a remote server (SQL Server 2005)

    You can right click in the "Server Explorer" on your db.mdf file and press "Publish to provider..."

    You can choose a variety of compatibilities with SQL Server 2005, 2008, etc.

    The output is a .sql query file ..

    Came across this question and thought this would be a good alternative answer, since I got here by searching for the exact same thing!

提交回复
热议问题