Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Query to get details of DB objects..

$
0
0
Hi Folks
Please assist me to make query to get the below resultset.

1) List of all the stored procedures in a database by name, with the number of lines of code for each Procedure.
For example;

sp_name line_of_code
______________ ___________
get_invoice_details 510
rpt_revenue_details 710
get_issuer_name 375

2) List of all table along with total number of columns.
For Example:

Table_name number_of_coulmns
____________ _________________
tbl_invoice 16
issuer_info 13
product_master 19


Thanks in advance

Viewing all articles
Browse latest Browse all 13329

Trending Articles