USE MASTER
GO
EXEC sp_serveroption ......
|
|
|
↓
EXEC MASTER.sys.sp_serveroption ......
use [Datebase]
GO
EXEC [PROCEDURE_] ......
|
|
|
↓
EXEC [Datebase].dbo.[PROCEDURE_] ......
use [Datebase]
GO
select * from [Table_]
|
|
|
↓
select * from [Datebase].dbo.[Table_]
多数据库查询
select *
from [Datebase].dbo.[Table_] table_1
join [Group].dbo.[Table_] table_2
on table_1.id=table_2.id