且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何为sql server 2014为多个数据库创建一个存储过程

更新时间:2023-02-07 11:33:47

有所有数据库都从一个数据库调用一个存储过程。如果它们位于不同的服务器上,请使用链接服务器,或者只是在完全相同的情况下引用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.