将表从一个数据库复制到另一个数据库,无需升级我的服务器 [英] Copying tables from one database to another w/o upgrading my server

查看:52
本文介绍了将表从一个数据库复制到另一个数据库,无需升级我的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个数据库 - 第一个在远程服务器上,第二个在本地。服务器是不同的版本 - 本地需要升级以匹配远程服务器。



如何将所有表从远程数据库复制到本地表,没有升级后者?是否有一些代码可以帮助解决这个问题?



谢谢

I have two databases – first one is on a remote server and second one is local. Servers are different versions - the local one needs to be upgraded to match the remote one.

How can I copy all the tables from a remote database to the local one, without upgrading the latter? Is there maybe some piece of code to help with this?

Thanks

推荐答案





您可以通过为远程数据库中的表创建脚本来尝试迁移表。为此,右键单击所需的表并移至脚本表为 - >创建为'。



之后,您必须对脚本进行排序,以便首先执行不依赖于任何其他表的表。最后,在本地数据库上运行脚本。



对于数据迁移,我建议使用SQL Server导入/导出向导。



希望我帮忙。
Hi,

You can try to migrate your tables by creating scripts for tables in your remote db. To do that, right click the desired table and move to ‘Script table as -> Create to’.

After that, you’ll have to sort you scripts so the tables w/o dependencies on any other tables are firstly executed. And finally, go and run the scripts on your local database.

For data migration, I recommend using SQL Server Import/Export wizard.

Hope I helped.


这篇关于将表从一个数据库复制到另一个数据库,无需升级我的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆