我感覺和它的提示不像,我連機器都重啓動過,還是不行。請各位隨便用一個database然後在條件中調用我寫的函數,看看是否有問題,謝謝! 我曾經試過:本身一個單純的查詢語句如:select * from a where c沒問題,但如果寫成了select * from (select * from a where c)(c中包含自定義函數)就會出現上述的錯誤提示
这句要加别名亚select * from (select * from a where c) t
呵呵,有的,只是在這裡寫掉啦!所以同樣的原理Create view也不行,我感覺是只能一級,即使說不能create view a as select from b where c,只能做沒有任何嵌套的查詢
BUG: Error Message: "Could not find database ID..." Occurs When a User Defined Function is Referenced in the JOIN Condition of a Subqueryhttp://support.microsoft.com/default.aspx?scid=kb;en-us;819264
在函數之前最好加上dbo 如: dbo.FunctionName
to vivianfdlpw() : 非常感谢,最近没上来!看了http://support.microsoft.com/default.aspx?scid=kb;en-us;819264 就知道怎么回事儿了 今天结贴
重新启动一下SQL Server再执行看看
我曾經試過:本身一個單純的查詢語句如:select * from a where c沒問題,但如果寫成了select * from (select * from a where c)(c中包含自定義函數)就會出現上述的錯誤提示
如:
dbo.FunctionName
非常感谢,最近没上来!看了http://support.microsoft.com/default.aspx?scid=kb;en-us;819264
就知道怎么回事儿了
今天结贴