存储过程跨数据查询Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options
Posted panjinzhao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了存储过程跨数据查询Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options相关的知识,希望对你有一定的参考价值。
消息 7405,级别 16,状态 1,过程 Queryxxxxx ,第 32 行 Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query.
解决方案:
GO /****** Object: StoredProcedure [dbo].[QueryNewProductL12MSale] Script Date: 2020/6/12 12:09:32 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF
GO /****** Object: StoredProcedure [dbo].[QueryNewProductL12MSale] Script Date: 2020/6/12 12:09:32 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO -- ============================================= -- ============================================= -- Author: <Author,,Archer> -- Create date: <Create Date,, 2018年12月17日 > -- Description: <Description,,>Top 150 SKU Use it. @stock_date=‘2016-12-6‘, @product=‘10101010601570‘ -- ============================================= ALTER PROCEDURE
以上是关于存储过程跨数据查询Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options的主要内容,如果未能解决你的问题,请参考以下文章