Information about Functions:
----------------------------
The below query gives the no.of functions that are there in specific database and the definition of that specific function.
Query:
-------
Select
'['+ROUTINE_SCHEMA+'].'+'['+ROUTINE_NAME+']' AS RoutineName,
ROUTINE_TYPE as RoutineType,
ROUTINE_DEFINITION
from
INFORMATION_SCHEMA.ROUTINES
where
ROUTINE_TYPE='FUNCTION'
Information about Procedures:
------------------------------
The below query gives the no.of procedures that are there in specific database and the definition of that specific procedure.
Query:
-------
Select
'['+ROUTINE_SCHEMA+'].'+'['+ROUTINE_NAME+']' AS RoutineName,
ROUTINE_TYPE as RoutineType,
ROUTINE_DEFINITION
from
INFORMATION_SCHEMA.ROUTINES
where
ROUTINE_TYPE='PROCEDURE'
No comments:
Post a Comment