如何更改数据库名称及其在sp,view函数上的更改 [英] How to change the database name and its change on sp,view function
本文介绍了如何更改数据库名称及其在sp,view函数上的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改数据库名称及其对存储过程,视图函数和该数据库过程的更改.使用另一个数据库表来创建结果集.
提前谢谢.
Vinay辛格
软件开发人员
How to change the database name and its change on stored procedure,view function.and this database procedure and view used another database table to create a result set.
Thanks in advance.
Vinay singh
Software developer
推荐答案
您是否要链接两个数据库?即使用查询从其他数据库访问表?
如果是这样,您所需要做的就是使用一个完全限定的名称从另一个数据库中调用您的表
Are you looking to link two databases? ie use a query that acesses tables from other databases?
If so all you need to do is to use a fully qualified name to call your table from the other database
select * from [databaseName].dbo.[tableName]
如果其他数据库首先位于其他服务器上,则必须先链接服务器
If your other database is on another server first you will have to link the servers then
select * from [serverName].[databaseName].dbo.[tableName]
希望对您有帮助.
I hope this help you.
这篇关于如何更改数据库名称及其在sp,view函数上的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文