简体   繁体   English

将数据库从SQL Server 2008 R2实例导出到SQL Express 2008

[英]Export database from SQL Server 2008 R2 Instance to SQL Express 2008

I ran into a issue about Import/Export on SQL Server. 我在SQL Server上遇到有关导入/导出的问题。
I have a database on SQL Server 2008 R2 instance running on my laptop. 我在笔记本电脑上运行的SQL Server 2008 R2实例上有一个数据库。

I want to attach it on a SQL Server Express 2008 instance running on Windows 2003 server. 我想将其附加在Windows 2003服务器上运行的SQL Server Express 2008实例上。
Due there is no management studio on my server Is it possible to export database from SQL Server 2008 R2 to SQL Express 2008 instance ? 由于我的服务器上没有Management Studio,是否可以将数据库从SQL Server 2008 R2导出到SQL Express 2008实例?
Depend on this answer I think its possible. 依靠这个答案,我认为它是可能的。
But when I want to use Import Export tool on destination setting I should choose destination configuration. 但是,当我想在目标设置上使用“导入导出”工具时,应该选择目标配置。
How can I get around this? 我该如何解决?
I want to know Is it possible to move R2 schema data to SQL Server 2008 express using Import / Export tool ? 我想知道是否可以使用导入/导出工具将R2架构数据移动到SQL Server 2008 Express? If yes I think it generate script for us and I don't have management studio on server. 如果是,我认为它会为我们生成脚本,并且服务器上没有Management Studio。 Is it possible to execute generated script on a management studio running on my system and then move MDF file to server ? 是否可以在系统上运行的Management Studio上执行生成的脚本,然后将MDF文件移动到服务器?

PS : Should I ask this question on DBA ? PS:我应该在DBA上问这个问题吗?

You already asked this question on dba.stackexchange.com: 您已经在dba.stackexchange.com上问了以下问题:

https://dba.stackexchange.com/questions/5923/attach-sql-server-2008-r2-on-sql-server-express-2008/ https://dba.stackexchange.com/questions/5923/attach-sql-server-2008-r2-on-sql-server-express-2008/

The answer hasn't changed. 答案没有改变。 You can't attach/restore a 2008 R2 database to a 2008 instance. 您不能将2008 R2数据库附加/还原到2008实例。 You either need to upgrade the 2008 instance to 2008 R2, or you need to move the schema and data in another way. 您要么需要将2008实例升级到2008 R2,要么需要以其他方式移动架构和数据。 For example, the import/export wizard should help with this (if it's not working, you need to explain what that means), as will 3rd party tools - see some options here . 例如, 导入/导出向导应对此提供帮助(如果它不起作用,则需要解释这意味着什么),第三方工具也应如此- 请在此处查看一些选项

PS : Should I ask this question on DBA ? PS:我应该在DBA上问这个问题吗?

Yes. 是。

But, to answer your question, you can't restore from 2008R2 to 2008. I know the naming convention used is, at best, completely confusing, the reality is that they are 2 separate versions just like 2005 and 2008, and are unable to restore to previous versions. 但是,要回答您的问题,您不能从2008R2恢复到2008。我知道所使用的命名约定充其量是完全令人困惑的,事实是它们是2个独立的版本,就像2005和2008年一样,并且无法恢复到以前的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM