Execution error: \'the function name is not a recognized built-in function name\'
2014-01-08 09:47
330 查看
SQL Server scalar user defined functions must be called with 2 part names. You need to write as username before function.
So if your function name is "function1" and is defined in the dbo schema, then instead of
"select function1()" you should call it as "select dbo.function1()"
Functions will run like below:
select dbo.AVG(columns name) from (table_name) - Returns the average value
select dbo.COUNT(columns name) from (table_name) - Returns the number of rows
select dbo.FIRST(columns name) from (table_name) - Returns the first value
select dbo.LAST(columns name) from (table_name) - Returns the last value
select dbo.MAX(columns name) from (table_name) - Returns the largest value
select dbo.MIN(columns name) from (table_name) - Returns the smallest value
select dbo.SUM(columns name) from (table_name) - Returns the sum
So if your function name is "function1" and is defined in the dbo schema, then instead of
"select function1()" you should call it as "select dbo.function1()"
Functions will run like below:
select dbo.AVG(columns name) from (table_name) - Returns the average value
select dbo.COUNT(columns name) from (table_name) - Returns the number of rows
select dbo.FIRST(columns name) from (table_name) - Returns the first value
select dbo.LAST(columns name) from (table_name) - Returns the last value
select dbo.MAX(columns name) from (table_name) - Returns the largest value
select dbo.MIN(columns name) from (table_name) - Returns the smallest value
select dbo.SUM(columns name) from (table_name) - Returns the sum
相关文章推荐
- C# ExecuteNonQuery()的返回值
- C# 通过传入节点name及节点value,来删除XML相应节点
- C# 通过传入节点name及节点value,来删除XML相应节点
- C# ExecuteNonQuery()的返回值
- UITableView reloadData的正确方法。
- The good life is one inspired by love and guided by knowledge
- ConcurrentLinkedQueue
- C# 循环的中断——Break、continue、return
- C# 循环的中断——Break、continue、return
- Not all code paths return a value
- Not all code paths return a value
- C# GUID的使用
- String和StringBuilder区别
- C# GUID的使用
- String和StringBuilder区别
- 交互设计原则有哪些?
- 华为QuidWay交换机配置命令手册
- N-Queens II
- UIBezierPath
- UIImageView的图片居中问题