如何为sql server 2014为多个数据库创建一个存储过程 [英] How to create one stored procedures for multiple database for sql server 2014
本文介绍了如何为sql server 2014为多个数据库创建一个存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请给我一个建议 -
如何在同一台服务器上为多个数据库创建一个存储过程..
Please give me a suggestion -
How to create one stored procedure for multiple database in the same server..
推荐答案
有所有数据库都从一个数据库调用一个存储过程。如果它们位于不同的服务器上,请使用链接服务器,或者只是在完全相同的情况下引用SP
databasename.schema.SP_name如果它们位于同一服务器上(并且您可以访问每个服务器)他们)
如果这有帮助请花时间接受解决方案。谢谢。
Have all databases call one stored procedure from one of the databases. Use Linked Servers if they are on different servers or simply reference the SP with full
databasename.schema.SP_name if they are on the same server (and you can access each of them)
If this helps please take time to accept the solution. Thank you.
这篇关于如何为sql server 2014为多个数据库创建一个存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文