This document provides SQL queries to list various database objects in SQL Server, including databases, tables, stored procedures, and user defined functions. It gives queries using system stored procedures and tables to get names of all databases and tables in a database. Stored procedures and user defined functions can be found by querying the sys.objects table filtering on type of 'P' for procedures and type descriptions containing 'FUNCTION'.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
17 views
Some Important SQL Queries
This document provides SQL queries to list various database objects in SQL Server, including databases, tables, stored procedures, and user defined functions. It gives queries using system stored procedures and tables to get names of all databases and tables in a database. Stored procedures and user defined functions can be found by querying the sys.objects table filtering on type of 'P' for procedures and type descriptions containing 'FUNCTION'.