1
A
回答
3
use databaseA
go
sp_helptext 'YourProcedure'
go
1
Select Routine_name, Routine_Definition
From Information_Schema.Routines
Where Routine_Name = "YourStoredProcedureName"
1
use DATABASE_NAME
select [name], [text]
from sysobjects SO join syscomments SC
on SO.id = SC.id
where xtype = 'P'