A库存储过程: create PROCEDURE [dbo].[spAAAForTest] ( ) =null , ) =null ) AS BEGIN select N'A' AS a , N'B' AS B , N'C' AS C ; END 同一台服务器实例,A,B两个数据库, 在B库的存储过程中,调用A库的存储过程 B库: ALTER PROCEDURE [dbo].[spAAAForTest2] ( ) =null , ) =null ) AS BEGIN ); set @sql =…