princessk1
Programmer
I have created a stored procedure that gets data from different databases on different servers. I have added the line
SET ANSI_NULLS ON
CREATE PROCEDURE [dbo].[usp_UpdateActiveLots] AS...
If I take out the line SET ANSI_NULLS ON - I get the error 7504 - Heterogeneous queries require ANSI_NULLS & ANSI_WARNINGS settings to be set for the connection.
With the line in, I get the error
ALTER PROCEDURE MUST BE THE FIRST STATEMENT IN THE QUERY BATCH
What am I missing?
Thanks
SET ANSI_NULLS ON
CREATE PROCEDURE [dbo].[usp_UpdateActiveLots] AS...
If I take out the line SET ANSI_NULLS ON - I get the error 7504 - Heterogeneous queries require ANSI_NULLS & ANSI_WARNINGS settings to be set for the connection.
With the line in, I get the error
ALTER PROCEDURE MUST BE THE FIRST STATEMENT IN THE QUERY BATCH
What am I missing?
Thanks