Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

T-SQL change in a view propagate to others

$
0
0

Hi guys, i have an initial view which give me an calculated field. Example :

TABLE.FIELD1 * TABLE.FIELD2 as mycalculatedfield

So i figured out that i messed up with that calculated field and i need to use other fields but the alias remain the same. Ex : 

TABLE.FIELD1 * TABLE.FIELD3 as mycalculatedfield

This one it's the root view , and i have like 7 views that get data from this one.

If i fix the view,  it will be the other 7 affected ? The alias will be the same? I need to propagate somehow the view?

All i find are cases where you change the name field and need to alter or drop/create views again, but my case it's different.

Thanks!!!


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>