I need to write a Stored Procedure to compare two Environment's(eg. Dev1_stg with Dev12_stg) Tables, Stored Procedure, UDF, Especially Views. Can any one suggest how can i approach this concept in Stored Procedure?
I am able to do this comparison for Tables, using Dbc.ColumnsV. but for Stored Procedures, Views?
There is a column named TableKind in dbc.tables which tells you what kind of object(eg: Table, View, Procedure, Macro, etc). You can use this column to compare the all kind of objects in the database. Below link for your reference.