April 10, 2018 at 4:27 am
Hi All,
We want to analyze database ,to find specific list of columns of some tables, which are not used in any of the Stored Procedure present in that database.
Basically this database is secondary Databases which is used to perform only specific functionality,so Only Sp related to those SPs are placed in this DB but here we have all tables with all columns..
Now i want to identify and remove unused columns...
Can some one please suggest on this.can we achieve this via some DMV ?
Thanks in advance.
April 10, 2018 at 6:29 am
J.Yogesh - Tuesday, April 10, 2018 4:27 AMHi All,We want to analyze database ,to find specific list of columns of some tables, which are not used in any of the Stored Procedure present in that database.
Basically this database is secondary Databases which is used to perform only specific functionality,so Only Sp related to those SPs are placed in this DB but here we have all tables with all columns..
Now i want to identify and remove unused columns...
Can some one please suggest on this.can we achieve this via some DMV ?
Thanks in advance.
Quick question, are you running on 2005?
😎
The solution to your problems somewhat depends on the version, not certain I have the 2005 code at hand though.
April 10, 2018 at 12:37 pm
Not 100% sure but this might work
And I'm not sure of the minimum version of SQL it requires
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply