July 14, 2009 at 4:24 pm
As Far as I Know, there is nothing that has a mapping that says viewname.column1 comes from tablename.somecolumn3;
obviously reading the code itself might help, but remember the column could be calculated or from a different view;
two procs can help somewhat:
exec sp_help your_view_name
exec sp_depends your_view_name
one gives you the column names used in the view, and the other gives you the source columns themselves, but they are not mapped to the view column names.
maybe reading the code for sp_depends might reveal a way to directly map those aliases from the view?
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply