Question : Get the original name of an aliased column in a view

Dear experts,

I need to determine the original name of a column that has been aliased in a view. I need to do it in such a way that I am able to determine what the original column name is and preferably also the name of the table where the column is coming from.

Answer : Get the original name of an aliased column in a view

You'll have to view the definition of the view


select object_definition(object_id('viewname'))
Random Solutions  
 
programming4us programming4us