将视图复制到Sql Server 2005中的另一个数据库 [英] Copy View to another database in Sql Server 2005

查看:80
本文介绍了将视图复制到Sql Server 2005中的另一个数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在SQL Server 2005中将一个包含数据的视图复制到另一个数据库?

How do I copy one view with data to another database in SQL Server 2005?

推荐答案

Er,视图不包含数据;表做.如果您在另一个数据库中有该表,并且其中有数据,那么只需为该视图创建脚本并将其运行到另一个数据库中即可.

再想一想:您不是指视图,实际上是指桌子,不是吗?如果是这种情况,请使用导入数据"任务.
Er, views don''t contain data; the tables do. Provided you have the table in the other database with the data in it then simply create a script for the view and run it into the other database.

Second thought: you don''t mean a view, you actually mean the table, don''t you? If that''s the case then use the Import data task.


这篇关于将视图复制到Sql Server 2005中的另一个数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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