How to get all Field Names,edt used,label,datatype and size of datatype used in a InventTable in Ax7/Ax 2012?

I need to get all field names,label,edt used,datatype and size of datatype for any table/view? is it possible to display the relations attached in a table too!! please reply with the code/job.

Thank you