troubleshooting Question

MS SQL Show All Empty Column from Particular Table

Avatar of Mehram
MehramFlag for Pakistan asked on
6 Comments1 Solution659 ViewsLast Modified:
I am using MS SQL, at the time of development I have created numbers of column but on time to time tuning the some column have not data and all rows are empty, for example.

Table Name: Test

Name  Class   Section  Object
Xx         xx       Null      Null
Xxx      xxx      Null      Null
Xxx      xxx      Null      Null

I want to see trough sql statement after give particular table name, all those column name which are null, to decide either I need this column for future or delete for better performance of database

Please help

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros