我想将copysql表与数据到另一个服务器数据库 [英] i want to copysql table with data to another server database
本文介绍了我想将copysql表与数据到另一个服务器数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在sql 2005的本地数据库中创建一个表。我想更新我的服务器数据库,将它添加到我的工作中?
i am making a table in local database of sql 2005. i want to update my server database to add this table to it what i do?
推荐答案
< a href =http://msdn.microsoft.com/en-us/library/ms140052.aspx> http://msdn.microsoft.com/en-us/library/ms140052.aspx [< a href =http://msdn.microsoft.com/en-us/library/ms140052.aspxtarget =_ blanktitle =New Window> ^ ]
http://msdn.microsoft.com/en-us/library/ms141209.aspx [ ^ ]
>
试试这个
try this
SELECT *
INTO NewTable
FROM TheFirstDB.Schemaname.OldTable
查看问题解决方案1中的问题
go through the liks in solution 1 of your Question
您好,
您将使用Linked Server Concept或SSIS包。
我将为您提供创建链接的链接服务器。
如何使用MS SQL 2005/2008创建链接服务器 [ ^ ]
SQL Server - 链接服务器 [ ^ ]
创建链接服务器后,请按如下方式使用Query。
Hi,
You will use Linked Server Concept or SSIS packages.
I will give you the link for Creating Linked Server.
How to create Link Server with MS SQL 2005/2008[^]
SQL Server - Linked Servers[^]
Once you Create the Linked Server, then use Query as follows.
SELECT * INTO <linked_server_name>.<database_name>.<schema_name>.<table_name> FROM <local_table_name></local_table_name></table_name></schema_name></database_name></linked_server_name>
- 对于SSIS包请检查Googel :-) :-) :-)
问候,
GVPrabu
-- For SSIS Packages Pls Check in Googel :-) :-) :-)
Regards,
GVPrabu
这篇关于我想将copysql表与数据到另一个服务器数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文