sys.sp_help
Reports information about a database object (any object listed in the sys.sysobjects compatibility view), a user-defined data type, or a data type.
What changes
- Input
- Reports information about a database object (any object listed in the sys.sysobjects compatibility view), a user-defined data type, or a data type.
- Output or change
- No write is stated in the Microsoft summary.
Syntax at a glance
sys.sp_help [ [ @objname = ] N'objname' ]
[ ; ]
Work example
Reports information about a database object (any object listed in the sys.sysobjects compatibility view), a user-defined data type, or a data type.
Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.
Check your work Lists objects visible in the current database. The result depends on database context and metadata visibility.
Practice SQL
Open in SQL FlowOpen the SQL for a walkthrough. Run the example in SQL Server to check its result.
EXEC sys.sp_help;
Open Microsoft Learn for full syntax, permissions, and details for your version.