码迷,mamicode.com
首页 > 其他好文 > 详细

存储过程跨数据查询Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options

时间:2020-06-12 14:31:48      阅读:76      评论:0      收藏:0      [点我收藏+]

标签:class   obj   nec   状态   warning   alter   ==   esc   过程   

消息 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

标签:class   obj   nec   状态   warning   alter   ==   esc   过程   

原文地址:https://www.cnblogs.com/panjinzhao/p/13098727.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!