ANSI_WARNINGS error in Stored Procedure
From: Noe (noech77_at_hotmail.com)
Date: 01/16/04
- Next message: Vincent: "SQL server registration failed"
- Previous message: Peter Daniels: "Re: DDL Permissions - CREATE PROCEDURE, but no CREATE TABLE"
- Next in thread: Russell Fields: "Re: ANSI_WARNINGS error in Stored Procedure"
- Reply: Russell Fields: "Re: ANSI_WARNINGS error in Stored Procedure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 16 Jan 2004 10:26:08 -0800
Hi everyone,
I have a linked Server on my regular SQL server, and when I try to create a stored procedure that reads from the linked server, I get the following error:
ERROR 7405: HETEROGENEOUS QUERIES REQUIRE THE ANSI_NULLS AND ANSI_WARNINGS OPTIONS TO BE SET FOR THE CONNECTION. THIS ENSURES CONSISTENT QUERIES SEMANTICS. ENABLE THESE OPTIONS AND THEN REISSUE YOUR QUERY.
When I click Check Syntax, it says that there are no Syntax Errors, but it wont let me save the stored procedure. I did put "SET ANSI_NULLS ON" and "SET ANSI_WARNINGS ON" in the stored procedure, but I keep getting the same error.
The query that is to be performed in the stored procedure is a simple SELECT, no inner joins or anything. And the stored procedure receives only 1 (integer) parameter.
Thanks in advance for your help.
Noe, from Mexico.
- Next message: Vincent: "SQL server registration failed"
- Previous message: Peter Daniels: "Re: DDL Permissions - CREATE PROCEDURE, but no CREATE TABLE"
- Next in thread: Russell Fields: "Re: ANSI_WARNINGS error in Stored Procedure"
- Reply: Russell Fields: "Re: ANSI_WARNINGS error in Stored Procedure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|