将数据库从 SQL Server 2008 R2 实例导出到 SQL Express 2008
我遇到了有关 SQL Server 上导入/导出的问题。
我的笔记本电脑上运行 SQL Server 2008 R2 实例的数据库。
我想将其附加到在 Windows 2003 服务器上运行的 SQL Server Express 2008 实例上。
由于我的服务器上没有 Management Studio 是否可以将数据库从 SQL Server 2008 R2 导出到 SQL Express 2008 实例?
取决于这个 回答我认为有可能。
但是,当我想在目标设置上使用导入导出工具时,我应该选择目标配置。
我该如何解决这个问题?
我想知道是否可以使用导入/导出工具将 R2 架构数据移动到 SQL Server 2008 Express? 如果是,我认为它会为我们生成脚本,但我的服务器上没有管理工作室。是否可以在我的系统上运行的管理工作室上执行生成的脚本,然后将 MDF 文件移动到服务器?
PS:我应该在 DBA 上问这个问题吗?
I ran into a issue about Import/Export on SQL Server.
I have a database on SQL Server 2008 R2 instance running on my laptop.
I want to attach it on a SQL Server Express 2008 instance running on Windows 2003 server.
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 ?
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 ?
If yes I think it generate script for us and I don't have management studio on server. Is it possible to execute generated script on a management studio running on my system and then move MDF file to server ?
P S : Should I ask this question on DBA ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您已经在 dba.stackexchange.com 上问过这个问题:
https://dba.stackexchange.com/questions /5923/attach-sql-server-2008-r2-on-sql-server-express-2008/
答案没有改变。您无法将 2008 R2 数据库附加/恢复到 2008 实例。您需要将 2008 实例升级到 2008 R2,或者需要以其他方式移动架构和数据。例如,导入/导出向导应该可以帮助解决此问题(如果它不起作用,您需要解释这意味着什么),第三方工具也是如此 - 在此处查看一些选项。
You already asked this question on dba.stackexchange.com:
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. You either need to upgrade the 2008 instance to 2008 R2, or you need to move the schema and data in another way. 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.
是的。
但是,回答你的问题,你无法从 2008R2 恢复到 2008。我知道使用的命名约定充其量是完全混乱的,事实是它们是 2 个独立的版本,就像 2005 和 2008 一样,并且无法恢复到以前的版本。
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.