如何导出 SQL Server 2008 数据库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15061712/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 13:53:35  来源:igfitidea点击:

How can I export a SQL Server 2008 database?

sqlsql-server-2008-express

提问by Dynamiite

Is it possible to export my database that i created in SQL Server 2008 Express?

是否可以导出我在 SQL Server 2008 Express 中创建的数据库?

I'm asking this because I need my group mate to be able to work on the same one. I know you can generate a script for the database but it give a bunch of errors when we try to run it.

我问这个是因为我需要我的队友能够在同一个团队中工作。我知道你可以为数据库生成一个脚本,但是当我们尝试运行它时会出现一堆错误。

回答by c0dem0nkey

You can right click the dbase then Task->Backup
This will generate a .bak file which you can Task->Restore to a new database

您可以右键单击 dbase,然后单击 Task->Backup
这将生成一个 .bak 文件,您可以通过 Task->Restore to a new database

You can refer here http://msdn.microsoft.com/en-us//library/ms187048.aspx

你可以在这里参考 http://msdn.microsoft.com/en-us//library/ms187048.aspx

回答by FIFO BIZSOL

Yes. You can export your sqlserver database by using these steps.

是的。您可以使用这些步骤导出 sqlserver 数据库。

  1. Right click on your database and hover on Tasks, you got another dropdown, Select Back Up.

  2. You got a pop-up like this. enter image description here

  3. Click on OK button.

  4. Navigate to path on your local PC (C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\your database)

  5. You got your exported database.

  1. 右键单击您的数据库并将鼠标悬停在任务上,您会得到另一个下拉菜单,选择备份。

  2. 你有一个这样的弹出窗口。 在此处输入图片说明

  3. 单击确定按钮。

  4. 导航到本地 PC 上的路径(C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\your database)

  5. 你得到了导出的数据库。

回答by Andrey Gordeev

Back it up on disk, give a copy of the file to your friend and tell him to restore a database from that copy.

将其备份到磁盘上,将文件的副本提供给您的朋友,并告诉他从该副本恢复数据库。

See this articlefor more help

请参阅此文章以获取更多帮助

回答by NiteshG86

Yes,export database from sql server 2008 express is possible.. create backup file and export it.

是的,可以从 sql server 2008 express 导出数据库.. 创建备份文件并将其导出。