SQL Server UDF 刷新 [英] SQL Server UDF refresh
本文介绍了SQL Server UDF 刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已将其中一个表中的列数据类型从 int 更改为十进制.
I have altered the column datatype in one of my tables from int to decimal.
我有一个引用此表列的 UDF.
I have a UDF referencing the columns of this table.
如何确保我的 UDF 返回小数而不是 int 而不必重新创建它?
How can I ensure my UDF returns decimals rather than int without having to re-create it?
(对于视图,我知道我们可以使用 sp_refreshview,不确定 UDF).
(For view, I know we can use sp_refreshview, not sure about UDF).
谢谢,拉什米
推荐答案
我假设您在谈论内联 TVF,在这种情况下您可以使用
I assume you are talking about an inline TVF in which case you can use
EXEC sp_refreshsqlmodule 'YourTVF'
这篇关于SQL Server UDF 刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文