无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
来源:互联网 发布:阿里巴巴淘宝批发网 编辑:程序博客网 时间:2024/05/18 14:45
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
表现:
下面的代码, 在兼容性级别90的所有用户数据库和tempdb库中都能执行, 但无法在系统数据库中执行, 执行会收到如下错误:
Msg 4121, Level 16, State 1, Line 2
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.f_test", or the name is ambiguous.
看来系统数据库中做东西有门槛了, 不过, 如果不在计算列中引用函数, 直接在查询中引用函数是没有问题的, 所以不知道是否应该算 BUG
CREATE FUNCTION dbo.f_test(
@value xml
)RETURNS int
AS
BEGIN
RETURN @value.value('(//*)[1]', 'int')
END
GO
CREATE TABLE #(
col1 xml,
col2 as dbo.f_test(col1)
)
GO
DROP TABLE #
DROP FUNCTION dbo.f_test
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 无法在SQL2005系统数据库中执行的T-SQL语句(XML处理)
- 数据库中能直接执行的sql在项目中的xml中无法执行
- SQL语句在数据库中是如何执行的
- T-SQL中执行sql语句的两种写法
- 在Entity Framework 中执行T-sql语句
- 在T-SQL语句中访问远程数据库
- 在T-SQL语句中访问远程数据库(整理)
- 数据库中可以执行的sql语句,在程序中执行抛出乱码异常
- powerdesigner 16.5 生成的sql语句在mysql数据库无法成功执行
- 通过继承ConfigurationSection,在web.config中增加自定义配置
- 10月10日热点故事精选 - 金山上市受追捧得益于“网游+软件”?
- Google电子表格开始邀请测试
- Slashdot全新改版
- 传统媒体和新媒体的对决:Techmeme Leaderboard上线
- 无法在SQL 2005系统数据库中执行的T-SQL语句(XML处理)
- 2006年100个最佳的技术产品
- 使用TableDiff实用工具解决事务复制中的问题
- Red Hat推出”MugShot”社交娱乐网站
- 建安检维修企业项目成本管理
- 像Last.Fm去战斗,电台式的阅读体验?
- Sendmail从NetBSD源代码树中移去
- python真的比C/C++"慢"吗?
- 实现删除主表数据时, 判断与之关联的外键表是否有数据引用, 有标志, 无则删除