Soldato
Not sure what the correct wording is, but essentially if I have one TVF which uses another TVF, i.e:
TVF1:
And another TVF which calls TVF1 at some point, i.e.:
and then I make some changes to TVF1 (i.e. change the column order) TVF2 returns data from the wrong columns - so if Col2 was originally the second column, but is now the third column in TVF1 I'll see the data from the second column still.
I can fix this by opening up TVF1 and executing the 'ALTER FUNCTION' code, but this is annoying and easy to forget when moving to the live site.
Does anyone have any ideas?
Cheers.
TVF1:
PHP:
SELECT * FROM Table WHERE ID = @ID
And another TVF which calls TVF1 at some point, i.e.:
PHP:
SELECT Col1, Col2 FROM TVF1(100)
and then I make some changes to TVF1 (i.e. change the column order) TVF2 returns data from the wrong columns - so if Col2 was originally the second column, but is now the third column in TVF1 I'll see the data from the second column still.
I can fix this by opening up TVF1 and executing the 'ALTER FUNCTION' code, but this is annoying and easy to forget when moving to the live site.
Does anyone have any ideas?
Cheers.